Solution to Midterm Exam
3. Write a program that read standard input character by character, and print out the characters to the standard output, replacing spaces ' ' by underscores '\_'. You can use while loop, getchar(), and putchar() functions.
while( (c=getchar()) != EOF) {