Untitled
unknown
c_cpp
2 years ago
349 B
5
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