/*this shows the getchar() function*/ #include main() { int ch; /*get characters and echo them to the screen*/ while((ch = getchar()) != '\n') putchar(ch); return 0; }