Untitled

mail@pastecode.io avatar
unknown
c_cpp
22 days ago
317 B
0
Indexable
Never
#include <iostream>
#include <math.h>
using namespace std;

bool chet(int a) {
	if (a % 2 == 0) {
		return true;
	}
	else {
		return false;
	}
}

int main() {
	setlocale(LC_ALL, "Russian");
	int a;
	cin >> a;
	chet(a);
	if (chet(a) == 1) {
		cout << "chet";
	}
	else {
		cout << "nechet";
	}
}
Leave a Comment