c_primer_plus/chapter3/charcode.c
2021-10-12 22:19:58 +08:00

13 lines
208 B
C

#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;
}