Write a program to display the palindrome numbers from 10 to 100.

Program:

for i in range(10,101):
    n=i
    r=0
    t=i
    while(n>0):
        d=n%10
        r=(r*10)+d
        n=int(n/10)
    if(r==t):
        print(i)

Comments

Popular Posts