add charcode.c

This commit is contained in:
LingZhaoHui 2021-10-12 22:19:58 +08:00
parent b3dad1a612
commit 486beda015

12
chapter3/charcode.c Normal file
View File

@ -0,0 +1,12 @@
#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;
}