p3_1.cpp
来自「相当丰富的C++源码」· C++ 代码 · 共 27 行
CPP
27 行
/***********************************
* 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 + =
减小字号Ctrl + -
显示快捷键?