\"Write a program to copy its input to its output, replacing each string of one or more blanks by a single blank.\"
I\'m assuming by thi
#include #include int main(void) { int c, flag=0; while((c=getchar()) != EOF){ if(c == ' '){ if(flag == 0){ flag=1; putchar(c); } }else{ flag=0; putchar(c); } } return 0; }
I hope this will help.