返回列表 發帖
#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
    int z=0;
    cin>>z;
    if (z>=100&&z<=90){
    cout << "SS" << endl;
    }
     else if(z>=89&&z<=80){
    cout << "S" <<  endl;
    }
      else if(z>=79&&z<=70){
    cout << "A" <<  endl;
    }
      else if(z>=69&&z<=60){
    cout << "B" <<  endl;
    }
     else if(z>=59&&z<=0){
    cout << "C" << endl;
    }
     else {
    cout << "XXXXXXXXXXXXXXXXXXXXX" << endl;
    }
    system("pause");
    return 0;
}

TOP

返回列表