Untitled
unknown
c_cpp
7 months 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