Write a program to copy its input to its output, replacing each string of one or more blanks by a single blank.
#include main() { int c; int inspace = 0; while((c = getchar()) != EOF) { if(c == ' ') { if(inspace == 0) { inspace = 1; putchar(c); }// End of Second IF }// End of First IF