Removing multiple blanks using putchar and getchar in C
问题 Problem: Write a program that receives textual input using getchar() and outputs the string, having removed multiples blanks. Here's how I wrote the pseudo-code: While each input character is received before reaching EOF, do the following: 1) if character is non-blank, print it out 2) otherwise: a. print out the blank b. do nothing untill the next non-blank character 3) if a non-blank character is reached, go back to 1) I tried to implement the algorithm as such: #include <stdio.h> /*