Unnnamedddd

Untitled

Jan 17th, 2021
786
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.  
  3. main()
  4. {
  5.     int c, nSpaces = 0;
  6.     char previous = 'a';
  7.     while ((c = getchar()) != EOF)
  8.         if (previous == ' ' && c == ' ')
  9.         {
  10.             break;
  11.         }
  12.         previous = c;
  13.         putchar (c);
  14. }
  15.  
RAW Paste Data