WAP to find out palindrome numbers between 1 to 100
Answers
Answered by
0
Output :
1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 22, 33, 44, 55, 66, 77, 88, 99,
Python program:
for n in range(1,101):
temp = n
rev = 0
while n>0:
dig=n%10
rev=rev*10+dig
n=n//10
if temp==rev:
print(temp,end=", ")
For more Python program visit :
https://www.filamenting.com/blog
And like and subscribe the blog.
Similar questions