Ends on seven. Given an integer, print “YES” if it’s last digit is 7 and print “NO” otherwise.
Input |
Output |
127 |
YES |
1233 |
NO |
5 |
NO |
367 |
YES |
Python, Java
Ends on seven. Given an integer, print “YES” if it’s last digit is 7 and print “NO” otherwise.
Input |
Output |
127 |
YES |
1233 |
NO |
5 |
NO |
367 |
YES |