Advertisement
Guest User

валли

a guest
Mar 27th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.42 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3.     {
  4.         char c;
  5.         int t;
  6.         t=false;
  7.         while ((c=getchar()) !=EOF)
  8.     {
  9.         if(c==' ' || c== '\t')
  10.     {
  11.         if(t== true) printf("\n");
  12.             t= false; }
  13.         else if (c!='\n')
  14. {           t=true;
  15.             putchar(c); }
  16.         else{
  17.             if(t!=false)
  18.         { printf("\n");
  19.             t=false;
  20.                 }
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement