#include<stdio.h>
int main()
{
char c;
printf("请输入任意字母:");
scanf("%c",&c);
if(c>='A'&&c<='Z')
{
c=c+32;
printf("%c\n",c);
}
else
{
c=c-32;
printf("%c\n",c);
}
return 0;
}
#include<stdio.h>
int main()
{
char c;
printf("请输入任意字母:");
scanf("%c",&c);
if(c>='A'&&c<='Z')
{
c=c+32;
printf("%c\n",c);
}
else
{
c=c-32;
printf("%c\n",c);
}
return 0;
}