终于感受到了生活的折磨~
原题链接:30127.【字符】【入门】小写变大写2026-01-02 12:19:32
发布于:浙江
#include<iostream>
using namespace std;
int main(){
char a;
cin >> a;
if (a=='a')cout<<"A";
else if (a == 'b') cout << "B";
else if (a == 'c') cout << "C";
else if (a == 'd') cout << "D";
else if (a == 'e') cout << "E";
else if (a == 'f') cout << "F";
else if (a == 'g') cout << "G";
else if (a == 'h') cout << "H";
else if (a == 'i') cout << "I";
else if (a == 'j') cout << "J";
else if (a == 'k') cout << "K";
else if (a == 'l') cout << "L";
else if (a == 'n') cout << "N";
else if (a == 'm') cout << "M";
else if (a == 'o') cout << "O";
else if (a == 'p') cout << "P";
else if (a == 'q') cout << "Q";
else if (a == 'r') cout << "R";
else if (a == 's') cout << "S";
else if (a == 't') cout << "T";
else if (a == 'u') cout << "U";
else if (a == 'v') cout << "V";
else if (a == 'w') cout << "W";
else if (a == 'x') cout << "X";
else if (a == 'y') cout << "Y";
else if (a == 'z') cout << "Z";
}



全部评论 1
有必要发这么多吗
6天前 来自 浙江
0





















有帮助,赞一个