#include <stdio.h>
int main()
{
char ch ;
printf("please enter a charachter.\n");
scanf("%c ", &ch);//%后面不能多加空格,要不然输出错误。
printf("The code for %c is %d \n",ch,ch );
return 0;
}
#include <stdio.h>
int main()
{
char ch ;
printf("please enter a charachter.\n");
scanf("%c ", &ch);//%后面不能多加空格,要不然输出错误。
printf("The code for %c is %d \n",ch,ch );
return 0;
}