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