叫我大聪明
2024-06-28 16:11:55
发布于:浙江
#include <bits/stdc++.h>
using namespace std;
int main()
{
char n;
cin>>n;
if(n=='a') cout<<"A";
else if(n=='b') cout<<"B";
else if(n=='c') cout<<"C";
else if(n=='d') cout<<"D";
else if(n=='e') cout<<"E";
else if(n=='f') cout<<"F";
else if(n=='g') cout<<"G";
else if(n=='h') cout<<"H";
else if(n=='i') cout<<"I";
else if(n=='j') cout<<"J";
else if(n=='k') cout<<"K";
else if(n=='l') cout<<"L";
else if(n=='m') cout<<"M";
else if(n=='n') cout<<"N";
else if(n=='o') cout<<"O";
else if(n=='p') cout<<"P";
else if(n=='q') cout<<"Q";
else if(n=='r') cout<<"R";
else if(n=='s') cout<<"S";
else if(n=='t') cout<<"T";
else if(n=='u') cout<<"U";
else if(n=='v') cout<<"V";
else if(n=='w') cout<<"W";
else if(n=='x') cout<<"X";
else if(n=='y') cout<<"Y";
else if(n=='z') cout<<"Z";
if(n=='A') cout<<"a";
else if(n=='B') cout<<"b";
else if(n=='C') cout<<"c";
else if(n=='D') cout<<"d";
else if(n=='E') cout<<"e";
else if(n=='F') cout<<"f";
else if(n=='G') cout<<"g";
else if(n=='H') cout<<"h";
else if(n=='I') cout<<"i";
else if(n=='J') cout<<"j";
else if(n=='K') cout<<"k";
else if(n=='L') cout<<"l";
else if(n=='M') cout<<"m";
else if(n=='N') cout<<"n";
else if(n=='O') cout<<"o";
else if(n=='P') cout<<"p";
else if(n=='Q') cout<<"q";
else if(n=='R') cout<<"r";
else if(n=='S') cout<<"s";
else if(n=='T') cout<<"t";
else if(n=='U') cout<<"u";
else if(n=='V') cout<<"v";
else if(n=='W') cout<<"w";
else if(n=='X') cout<<"x";
else if(n=='Y') cout<<"y";
else if(n=='Z') cout<<"z";
return 0;
}
这里空空如也
有帮助,赞一个