入门题解6
2023-03-17 10:55:21
发布于:安徽
224阅读
0回复
0点赞
我的代码如下
#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
if(n%2==0){
cout<<"even";
}else{
cout<<"odd";
}
return 0;
}
全部评论 2
#include<bits/stdc++.h> using namespace std; int main(void){ ios_base::sync_with_stdio(false); cin.tie(nullptr); int n; cin>>n; cout<< (n%2?"odd":"even"); return 0; }2026-03-23 来自 湖北
0可可可
2025-10-15 来自 江苏
0





有帮助,赞一个