Mary_99

ASCII

Nov 25th, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.34 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <conio.h>
  3. int main()
  4. {
  5. char ch;
  6. printf("Program writes ASCII codes for letters and digits\n");
  7. for(ch = 'a'; ch<='z';ch++)
  8.     printf("ASCII code for the letter %c is %d\n", ch, ch);
  9.     for(ch = '0'; ch<= '9';ch ++)
  10.         printf("ASCII code for the digit %c id %d\n", ch,ch);
  11.     getch();
  12.  
  13.    return 0;
  14. }
Add Comment
Please, Sign In to add comment