Untitled
unknown
plain_text
2 years ago
259 B
5
Indexable
#include <iostream>
#include <cmath>
using namespace std;
bool one(int a){
if (a % 2 == 1) {
return 0;
}
else {
return 1;
}
}
int main(){
int a;
cin >> a;
if (one(a) == 1) {
cout << "YES";
}
else {
cout << "NO";
}
}Editor is loading...
Leave a Comment