#51433: c++正解跟思路 (想學再點)


yp11451032@yphs.tp.edu.tw (711-23吳嘉恩)


#include<iostream>
using namespace std;
int main(){
    int a;                            //宣告
    cin>>a;                       //輸入
    if(a>50){                     //如果大於50
    cout<< a-1;               //-1
    }else{                         
    cout<<a;                   //輸出原本的數
}
}