#include <iostream>
#include <cstdio>
#include <cstring>
#define MAXN 21
using namespace std;
char str[MAXN];
int main()
{
cin>>str;
for(int i = 0; i < strlen(str); i++)
{
if(islower(str[i]))
str[i] = toupper(str[i]);
else if(isupper(str[i]))
str[i] = tolower(str[i]);
}
cout<<str;
return 0;
}
时间: 2024-12-14 13:15:29