Is positive. Given an integer, print “YES” if it’s positive and print “NO” otherwise.
Input |
Output |
12 |
YES |
-34 |
NO |
5 |
YES |
Python, Java
Is positive. Given an integer, print “YES” if it’s positive and print “NO” otherwise.
Input |
Output |
12 |
YES |
-34 |
NO |
5 |
YES |