\"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 main() { int CurrentChar, LastChar; LastChar = '1'; while ((CurrentChar = getchar()) != EOF) { if (CurrentChar != ' ') { putchar(CurrentChar); LastChar = '1'; } else { if (LastChar != ' ') { putchar(CurrentChar); LastChar = ' '; } } } }