AC代码:
#include <iostream>
#include <stdio.h>
#include<cmath>
#include<iomanip>
using namespace std;
int main()
{
int score;
cin >> score;
while (score != -1)
{
if ((score >= 90) && score <= 100) cout << "A" << endl;
if ((score >= 80) && score <= 89)cout << "B" << endl;
if ((score >= 60) && score <= 79)cout << "C" << endl;
if (score<60)cout << "D" << endl;
cin >> score;
}
return 0;
}
最后
以上就是震动香菇最近收集整理的关于东华大学 2022 oj c++ 你的成绩如何的全部内容,更多相关东华大学内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复