Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- /*Write a program to copy its input to its output, replacing each string of one or more blanks by a single blank*/
- main()
- {
- int c;
- while ((c=getchar())!=EOF)
- {
- putchar(c);
- while (c==' ')
- {
- c=getchar();
- if (c!=' ')
- putchar(c);
- }
- }
- }
- //FINNNNNNAAAAALLLLLLYYYYYYYYYYYY :')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement