#include<stdio.h>
int main(void)
{
char ch;
printf("请输入一个小写字母:");
ch=getchar();
ch=ch-32;
putchar('\n');
printf("%c\n",ch);
printf("%d\n",ch);
return 0;
}
#include<stdio.h>
int main(void)
{
char ch;
printf("请输入一个小写字母:");
ch=getchar();
ch=ch-32;
putchar('\n');
printf("%c\n",ch);
printf("%d\n",ch);
return 0;
}