返回列表 發帖
#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
    re:
    int score;
    cout<<"請輸入你的成績:";
    cin>>score;
    if (score==100)
            cout<<"恭喜考100分~~"<<endl;
    else if (score>=60&&score<100)
            cout<<"恭喜及格!"<<endl;
    else if (score<60&&score>0)
            cout<<"不及格!"<<endl;
    else if (score==0)
            cout<<"考0分!"<<endl;
    else
            cout<<"重打!"<<endl;
    goto re;
    system("pause");
    return 0;
}

TOP

返回列表