Loading

Showing posts with label Getche Example. Show all posts

C - Program - Getche Example

Getche Example



#include <stdio.h>
#include <conio.h>

int main(void)
{
   char ch;

   printf("Input a character:");
   ch = getche();
   printf("\nYou input a '%c'\n", ch);
   return 0;
}

Posted in | Leave a comment