题解 | #字母大小写转换#
字母大小写转换
http://www.nowcoder.com/practice/850ebd30a2a34cfc87199da3fc15786a
#include<stdio.h>
int main()
{
char ch;
while(scanf("%c",&ch)!=EOF)
{
getchar();
if(ch>='A' && ch<='Z')
{
printf("%c\n",ch+32);
}
if(ch>='a' && ch<='z')
{
printf("%c\n",ch-32);
}
}
return 0;
}