Answer the attachment :P
Attachments:
Answers
Answered by
42
n=int(input("enter the number"))
num=n
revnum=0
while(n>0):
⠀⠀⠀ rem= n%10
⠀⠀⠀ n= n//10
⠀⠀⠀ revnum= revnum*10+rem
print(" revnum is :",revnum)
if(revnum= = num):
⠀⠀⠀ print("pallindrom")
else:
⠀⠀⠀ print("not pallindrom")
Note: Screenshots of program is in attachment :P
Attachments:
Answered by
65
Attachments:
Similar questions