Untitled

 avatar
unknown
c_cpp
a year ago
349 B
3
Indexable

#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";
}
Editor is loading...
Leave a Comment