Computer Science, asked by somriksaha14, 3 months ago

write a program in python to accept a number and display it is palindrome or not​

Answers

Answered by Breezywind
1

n=int(input("Enter number:")) temp=n rev=0 while(n>0): dig=n%10 rev=rev*10+dig n=n//10 if(temp==rev): print("The number is a palindrome!") else: print("The number isn't a palindrome!")

HOPE IT HELPS

MARK AS BRAINLIEST PLEASE

Answered by SprihaSanyal
1

Answer:

n=int(input("Enter number:")) temp=n rev=0 while(n>0): dig=n%10 rev=rev*10+dig n=n//10 if(temp==rev): print("The number is apalindrome!") else: print("The number isn't apalindrome!")

hope it helps

Similar questions