Advertisement
DrAungWinHtut

chario.c

Feb 8th, 2023
932
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     printf("Enter a key to show\n");
  5.     printf("==============\n");
  6.     char ch = NULL;
  7.     do {
  8.         ch = fgetc(stdin);
  9.         if (ch != '\n')
  10.         {
  11.             printf(" %d\n", ch);
  12.         }
  13.        
  14.     } while (ch != 27);
  15.  
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement