Getchar code example Example 1: getch() c++ #include <conio.h> int getch(); Example 2: getchar int getchar(void)