竞赛
考级
不太聪“铭”
#include<iostream> using namespace std; bool **(int n){ if(n%2==0){ return true; }else{ return false; } } int main(){ int n; cin>>n; if(**(n)){ cout<<"even"; }else{ cout<<"odd"; } return 0; }
周瑜大王
(悲
聪明的人类📬📬📬
zsy
acgoacgo
suzifeng
#include<bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; if(a%2==0){ cout<<"even"; } else{ cout<<"odd"; } return 0; }
不喜欢acgo
#include <iostream> using namespace std; int main(){ int n; cin>>n; if(n%2==1){ cout<<"odd"; } else{ cout<<"even"; } return 0; }
LELECHA
四大Tian王
#include <iostream> 2 using namespace std; 3 int main(){ 4 int n; 5 cin >> n; 6 if(n%2==1) 7 cout << "odd"; 8 else 9 cout << "even"; 10 return 0; 11 }//简简单单
吴卡 ━━╋══════➢
思路很简单: 就这么简单,上代码!!!
星舰
队团加不)ด้้童帅_者仇复
#include<cstdio> using namespace std; int main() { int n; scanf("%d",&n); if(n%2==0) printf("even"); else printf("odd"); return 0; }
CuSO4
正在减肥的吃货
偶数除以2一定余0,所以用a%2==0来判断 代码如下:
🐒🐒🐒🐒🐒🐒🐒🐒
#include<iostream> using namespace std; int main(){ int n; cin>>n; if( n%20 ){ cout<<"even"; } if( n%21 ){ cout<<"odd"; } return 0; }
王仲钦
1scanf("%lld",&n); 2 if(n%2) { 3 printf("odd"); 4 }else{ 5 printf("even"); 6}
136****9647
#include<iostream> using namespace std; int main(){ int n; cin>>n; if(n%2 == 0 ) cout<<"even"; else cout<<"odd"; return 0; }
189****9838
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; if(n%2==0){ cout<<"even"; }else{ cout<<"odd"; } return 0; }
∑(っ°Д°;)っ@¥
共71条