Run ID:110692
提交时间:2025-02-22 17:10:32
#include <iostream> using namespace std; int main() { int a; cin >> a; // 读取输入的整数 // 判断成绩等级 if (a >= 90) { cout << "A" << endl; } else if (a >= 80) { cout << "B" << endl; } else if (a >= 70) { cout << "C" << endl; } else if (a >= 60) { cout << "D" << endl; } else { cout << "E" << endl; } return 0; }