Files
python/TangDou/LuoGuBook/P5704.cpp

17 lines
281 B
C++
Raw Normal View History

2025-08-30 18:35:01 +08:00
#include <bits/stdc++.h>
using namespace std;
int main() {
char c;
cin >> c;
cout << char(c - 32) << endl;
printf("%c\n", c - 32);
printf("%c\n", c - 'a' + 'A');
char ans;
ans = c - 'a' + 'A';
cout << ans << endl;
return 0;
}