You need to somehow signal an "end of file" from the keyboard to cause getchar() to return EOF, after which the loop will terminate. Under windows that is achieved by hitting CTRL-Z (on the...