Untitled
unknown
c_cpp
2 years ago
317 B
7
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";
}
}Editor is loading...
Leave a Comment