Header Ads

Python Program to Print Palindrome Number in a Given Range

Python Program to Print Palindrome Number Between Two Number


palindrome bill, electricity, calculate, python, program, unit, calculate bill, calculate electricity bill, palindrome number, find palindrome number, palindrome number between two number

Example: Code Program


start = int(input("Enter Starting Point:"))

end = int(input("Enter Ending Point:"))

print("Palindrome Between",start," and ",end)

for num in range(start, end, 1):

    temp = num

    rev = 0

    while temp:

        rem = int(temp%10)

        temp = int(temp/10)

        rev =int(rev*10+rem)

    if num == rev:

        print(num, end=" ")





Output




palindrome bill, electricity, calculate, python, program, unit, calculate bill, calculate electricity bill, palindrome number, find palindrome number, palindrome number between two number



Java Program Code

Java Program to Check the Number is Palindrome or Not
Java Program to Print Palindrome Number in a Given Range

No comments

Powered by Blogger.