#include
#include
{
char ch;
printf("请输入一个小写字母:");
scanf("%c",&ch);
if('a'<=ch&&ch<='z')
{
printf("对应的大写字母为: %c\n",ch-32);
}
else
printf("你输入的不是小写字母!\n");
return 0;
}
#include "stdio.h"
#include "string.h"
int main()
{
char c;
c=getchar();
strupr(&c);
putchar(c);
return 0;
}