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