Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- { char a=0;
- int t=0;
- while((a=getchar())!= EOF )
- {
- if(a==' ')
- {
- if(!t)
- putchar('\n');
- t = 1;
- }
- else
- {
- t = 0;
- putchar(a);
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement