#include <stdio.h>
#include <ctype.h>
int main()
{
char ch = 0;
while (~scanf("%c\n", &ch))
{
if (isupper(ch))
printf("%c\n", tolower(ch));
else
printf("%c\n", toupper(ch));
}
return 0;
}
这是结果

不懂为什么会错位
