Files
ClassFeedback/C++代码/学习/未命名2.cpp

24 lines
270 B
C++

#include <bits/stdc++.h>
#define endl '\n'
using namespace std;
int n;
int arr[100100];
int main(){
char c;
cin >> c;
// 判断c是大写还是小写
if(c >= 'a' && c <= 'z'){
// 小写
c = c - 'a' + 'A';
} else {
c = c - 'A' + 'a';
}
cout << c;
return 0;
}