Advertisement
jackieradallhazik

ESC to stop

Sep 13th, 2016
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.16 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(){
  4.     char a;
  5.     do
  6.     {
  7.         a = getch();
  8.         if(a!=27)
  9.             printf("%c ascii number is %d \n",a,a);
  10.     }while(a != 27);
  11.     return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement