8 solutions
- 1
Information
- ID
- 528
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 4
- Tags
- # Submissions
- 326
- Accepted
- 138
- Uploaded By
#include<bits/stdc++.h>
using namespace std;
long long n;
int main(){
scanf("%lld",&n);
if(n%2==1){
printf("odd");}
else{
printf("even");}
return 0;}
#include <bits/stdc++.h>
using namespace std;
int main(int argc, char **argv){
int n;
cin >> n;
if (n % 2 == 0){
cout << "even";
}else{
cout << "odd";
}
return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main(int argc, char **argv){
int n;
cin >> n;
if (n % 2 == 0){
cout << "even";
}else{
cout << "odd";
}
return 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;
}
#include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cin >> n;
if(n % 2 == 0){
cout << "even";
}
else{
cout << "odd";
}
return 0;
}
#include using namespace std; int main(){ int a; cin>>a; if(a%2==1){ cout<<"odd"; } else{ cout<<"even";
}
return 0;
}
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int main() {
int a;
cin>>a;
if(a%2==0)
{
cout<<"even";
}
else
{
cout<<"odd";
}
return 0;
}
By signing up a ZXOJ universal account, you can submit code and join discussions in all online judging services provided by us.