Answer:
Written in Python:
num = int(input("Number: "))
strnum = str(num)
if len(strnum) !=5:
     print("Length must be 5")
else:
     if(strnum[::-1] == strnum):
          print("The number is a palindrome.")
     else:
          print("The number is NOT palindrome.")
Explanation:
This prompts user for input
num = int(input("Number: "))
This converts user input to string
strnum = str(num)
This checks the length of the string
if len(strnum) !=5:
     print("Length must be 5") If length is not 5, this prompt is printed
else:If otherwise
     if(strnum[::-1] == strnum): The compares the string reversed with the original
          print("The number is a palindrome.") If both are the same, this line is executed
     else:
          print("The number is NOT palindrome.") If otherwise, this line is executed