Computer Science, asked by davidricher012, 8 months ago

Write a program in Python to check whether the entered integer is
palindrome or not. (Hint- 11011 is a palindrome.)​

Answers

Answered by riyaamen303
2

Answer:

number=int(input("Enter any number :"))

temp=number

reverse_num=0

while(number>0):

   digit=number%10

   reverse_num=reverse_num*10+digit

   number=number//10

if(temp==reverse_num):

    print("The number is palindrome!")

else:

         print("Not a palindrome!")

Hope this helps you.Please add Brainliest if it is correct.

Similar questions