add charcode.c
This commit is contained in:
parent
b3dad1a612
commit
486beda015
12
chapter3/charcode.c
Normal file
12
chapter3/charcode.c
Normal 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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user