📄 p3_1.cpp
字号:
/***********************************
* p3_1.cpp *
* 将百分制的成绩按的等级分输出 *
***********************************/
#include<iostream>
using namespace std;
void main()
{
int n;
cout<<"Enter the score:";
cin>>n;
if (n>=60)
if (n>=90)
cout<<"The degree is A"<<endl;
else if (n>=80)
cout<<"The degree is B"<<endl;
else
cout<<"The degree is C"<<endl;
else
cout<<"The degree is D"<<endl;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -