Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.37 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(int argc, char *argv[])
  5. {
  6.     int c,d ;
  7.    
  8.     while((c=getchar())!=EOF)
  9.     {
  10.         if(c!=' ')
  11.         putchar(c);
  12.         else
  13.         {
  14.         putchar(c);
  15.             while(c==' ')
  16.             {
  17.             c=getchar();
  18.             }
  19.         }
  20.        
  21.     }      
  22.  
  23.   system("PAUSE"); 
  24.   return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement