Mega Code Archive
Categories
/
C
/
Console
Get the next character from stdin
#include
int main () { char c; puts ("Enter text. '.' to exit:"); do { c=getchar(); putchar (c); } while (c != '.'); return 0; }