#include <stdio.h>
void main()
{
char ch;
printf("请输入一个字符:");
if(ch<'A'||ch>'z'||ch<'a'||ch>'z') ch=ch;
scanf("%c",&ch);
if(ch>='A'&&ch<='Z'){printf("%c",ch+32);}
if(ch>='a'&&ch<='z'){printf("%c",ch-32);}
}
void main()
{
char ch;
printf("请输入一个字符:");
if(ch<'A'||ch>'z'||ch<'a'||ch>'z') ch=ch;
scanf("%c",&ch);
if(ch>='A'&&ch<='Z'){printf("%c",ch+32);}
if(ch>='a'&&ch<='z'){printf("%c",ch-32);}
}