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