← Problem book: C
Lesson 84 of 96 · 10 XP
Function: is it even
Theory and problem statement
Machine translation, not yet reviewed by a native speaker.
Write a function is_even(n) that returns “yes” if the number is even (in Python — True/False, in C — 1/0). Read an integer and print YES or NO.
Example
Input:
4
Output:
YES
Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.