热门

最新

红包

立Flag

投票

同城

我的

发布
xmt67xmt
无码猿人
3 年前
truexmt67xmt

#include <iostream>
using namespace std;

int main()
{
//高考分数查询大学
//键盘输入分数
int score = 0;
cout << "请输入您的分数" << score << endl;
cin >> score;

//显示输入的分数
cout << "您的分数是:" << score << endl;

//判断,有效分值是0-750之间,如果不是这个分值范围就报错
if (score > 750)
{
cout << "您输入的分数不是有效分数" << score << endl;
}
else if (score < 0)
{
cout << "您输入的分数不是有效分数" << score << endl;
}
//大于等于700,能上清北
else if (score >= 700)
{
cout << "恭喜您,考上了清北!" << endl;
}
//大于等于600以上能上985
else if (score >= 600)
{
cout << "恭喜您,考上了985大学!" << endl;
}
//大于等于570以上能211
else if (score >= 570)
{
cout << "恭喜您,考上了211大学!" << endl;
}
//大于等于500能上普通本科
else if (score >= 500)
{
cout << "恭喜您,考上了本科!" << endl;
}
//其余不能上本科
else
cout << "再接再劢,加油!" << endl;


system("pause");

return 0;
}

CSDN App 扫码分享
分享
评论
1
打赏
  • 复制链接
  • 举报
下一条:
谁是我的第200个粉丝呢?
立即登录