#include<stdio.h>
main ()
{
char c;
printf("Input a string:");
scanf("%c",&c);
printf("%c ASCII is %d\n",c,c);
}
#顺序结构#ASCII码值:编写一个程序求出任意一个输入字符的ASCII码值
最新推荐文章于 2023-10-17 21:52:21 发布
#include<stdio.h>
main ()
{
char c;
printf("Input a string:");
scanf("%c",&c);
printf("%c ASCII is %d\n",c,c);
}