Are both odd. Given two integers, print “YES” if they’re both odd and print “NO” otherwise.
Input |
Correct answer |
1 3 |
YES |
1 |
NO |
5 |
YES |
10 |
NO |
79 |
YES |
Python, Java
Are both odd. Given two integers, print “YES” if they’re both odd and print “NO” otherwise.
Input |
Correct answer |
1 3 |
YES |
1 |
NO |
5 |
YES |
10 |
NO |
79 |
YES |