1013: 成绩等级
Submit: 224 Solved: 164
Description
输入某学生成绩,如果86分以上(包括86分)则输出“VERY GOOD” ,如果在60到85之间的则输出“GOOD”(包括60和85),小于60的则输出“BAD”
Input
输入只有一行,包括1个整数。
Output
输出只有一行(这意味着末尾有一个回车符号)。
Sample Input
80
Sample Output
GOOD
HINT
Source
#include<iostream>
using namespace std;
main()
{
int g;
cin>>g;
if(g>=86)cout<<"VERY GOOD"<<endl;
else if(g>=60)cout<<"GOOD"<<endl;
else cout<<"BAD"<<endl;
}