Get char from the console : Console Read Char « Console « C / ANSI-C
- C / ANSI-C
- Console
- Console Read Char
Get char from the console
#include <stdio.h>
int main(void)
{
char ch;
do {
ch = getchar();
putchar('.');
} while(ch != '\n');
return 0;
}
Related examples in the same category