Is three digit. Given an integer, print “YES” if it’s a three-digit number and print “NO” otherwise.
Input |
Correct answer |
123 |
YES |
1233 |
NO |
5 |
NO |
360 |
YES |
79 |
NO |
Python, Java
Is three digit. Given an integer, print “YES” if it’s a three-digit number and print “NO” otherwise.
Input |
Correct answer |
123 |
YES |
1233 |
NO |
5 |
NO |
360 |
YES |
79 |
NO |