c_primer_plus/chapter3/charcode.c

13 lines
208 B
C
Raw Normal View History

2021-10-12 14:19:58 +00:00
#include <stdio.h>
int main(int argc, char const *argv[])
{
char ch;
printf("Please input a Character\n");
scanf("%c", &ch);
printf("The Code for %c is %d.\n", ch, ch);
return 0;
}