Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- int main()
- {
- char ch;
- printf("Program writes ASCII codes for letters and digits\n");
- for(ch = 'a'; ch<='z';ch++)
- printf("ASCII code for the letter %c is %d\n", ch, ch);
- for(ch = '0'; ch<= '9';ch ++)
- printf("ASCII code for the digit %c id %d\n", ch,ch);
- getch();
- return 0;
- }
Add Comment
Please, Sign In to add comment