#include<stdio.h>
int main()
{
char letter;
printf("请输入一个字母:");
scanf("%c",&letter);
if((letter>='a')&&(letter<='z')){
printf("%c是小写字母,",letter);
printf("对应的大写字母是:%c\n",letter-('a'-'A'));
}else if((letter>='A')&&(letter<='Z')){
printf("%c 是大写字母,",letter);
printf("对应的小写字母是:%c\n",letter-('A'-'a'));
}else {
printf("非法数据!!!");
}
return 0;
}