Untitled

mail@pastecode.io avatar
unknown
c_cpp
16 days ago
349 B
0
Indexable
Never

#include <iostream>
#include <string>
#include <math.h>
using namespace std;
int oleg(int n) {
    int sum = 0;
    if (n%2==0)
    {
        sum = 1;
    }
    return sum;
}

int main()
{
    int n;
    cin >> n;
    int answer = oleg(n);
    if (answer == 1) {
        cout << "chet";
    }
    else cout << "nechet";
}
Leave a Comment