Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<string.h>
- int main()
- {
- char s[256],*p,a[256];
- gets(s);
- for(p=s;*p!=NULL;p++)
- if(*p==' '||*p>='0'&&*p<='9')
- {
- strcpy(a,p+1);
- *p=NULL;
- p--;
- strcat(s,a);
- }
- puts(s);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement