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