Computer Science, asked by jigyasa0414, 1 month ago

WAP to find the reverse of a no. and check whether it is a PALINDROME or not in python program​

Answers

Answered by OoAryanKingoO78
17

Answer:

number=int(input("Enter any number :")) #store a copy of this number temp=number #calculate reverse of this number reverse_num=0 while(number>0): #extract last digit of this number digit=number%10 #append this digit in reveresed number reverse_num=reverse_num*10+digit #floor divide the number leave out the last digit ...

Similar questions