Share your repls and programming experiences

← Back to all posts
If/else: Four-digit palindrome
pole55 (196)

Let's call an integer a palindrome if it remains the same after reading its digits from right to left. Given a four-digit integer, print "YES" if it's a palindrome and print "NO" otherwise.