\"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
I wrote this and seems to be working.
# include int main () { int c,lastc; lastc=0; while ((c=getchar()) != EOF) if (((c==' ')+ (lastc==' '))<2) putchar(c), lastc=c; }