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