1 #include <stdio.h>
2
3 int main()
4 {
5 int c = 0,flag = 0;
6 printf("Clear blanks");
7 while((c=getchar()) != EOF)
8 {
9 if(c == ' ')
10 {
11 if(flag == 0)
12 {
13 flag = 1;
14 }
15 else
16 {
17 continue;
18 }
19 }
20 else
21 {
22 flag = 0;
23
24 }
25 printf("%c",c);
26 }
27 }