#136: 201


s245 (王佑綱)

學校 : 不指定學校
編號 : 280
來源 : [118.163.232.198]
最後登入時間 :
2026-08-08 13:39:11
t011. 201 選擇敘述與迴圈 (奇偶數判斷) | From: [61.227.46.177] | 發表日期 : 2026-08-01 11:31

#include<bits/stdc++.h>
using namespace std;
int a;
int main()
{
    cin>>a;
    if(a%2==1){
        cout<<"odd"<<endl;
    }else{
    cout<<"even"<<endl;
    return 0;
    }
}
 
ZeroJudge Forum