杭电OJ2004

xiaoxiao2025-04-29  11

#include <iostream> using namespace std; int main() { int x; while (cin >> x) { if (90 <= x&&x <= 100) cout << 'A' << endl; else if (80 <= x&&x <= 89) cout << 'B' << endl; else if (70 <= x&&x <= 79) cout << 'C' << endl; else if (60 <= x&&x <= 69) cout << 'D' << endl; else if (0 <= x&&x <= 59) cout << 'E' << endl; else cout << "Score is error!" << endl; } }

 

转载请注明原文地址: https://www.6miu.com/read-5029382.html

最新回复(0)