Is even. Given an integer, print “YES” if it’s even and print “NO” otherwise.
Input |
Correct answer |
1 |
NO |
2 |
YES |
5 |
NO |
-6 |
YES |
79 |
NO |
Python, Java
Is even. Given an integer, print “YES” if it’s even and print “NO” otherwise.
Input |
Correct answer |
1 |
NO |
2 |
YES |
5 |
NO |
-6 |
YES |
79 |
NO |