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