首页 > 其他分享 >d

d

时间:2023-05-20 09:44:06浏览次数:34  
标签: own cout int else && using

#include <iostream>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char** argv) {
int a;
cin>>a;
if(a>95&&a<=100){
cout<<"你获得了王者称号";
}else if(a>90&&a<=95){
cout<<"你获得了星耀称号";
}else if(a>80&&a<=90){
cout<<"你获得了钻石称号";
}else if(a>70&&a<=80){
cout<<"你获得了铂金称号";
}else if(a>60&&a<=70){
cout<<"你获得了黄金称号";
}else if(a>50&&a<=60){
cout<<"你获得了白银称号";
}else if(a>40&&a<=50){
cout<<"你获得了青铜称号";
}else if(a<=40&&a>0){
cout<<"你获得了男女双打陪练运动员称号";
}else if(!a>=0||a<=100){
cout<<"请输入正确的分数";
}

标签:,own,cout,int,else,&&,using
From: https://www.cnblogs.com/rieri/p/17416787.html

相关文章