Untitled

mail@pastecode.io avatar
unknown
c_cpp
a year ago
317 B
1
Indexable
#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