Untitled

mail@pastecode.io avatar
unknown
plain_text
23 days ago
259 B
1
Indexable
Never
#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";
	}
}
Leave a Comment