16) Write a Python program to reverse a number given by the user.
OR
Write a Python program to check whether the given number is palindrome or not
Answers
Answered by
2
Reverse the number program:
num = int(input())
t = 0
while num != 0:
m = num % 10
t = t * 10 + m
num //= 10
print("Reversed Number: " + str(t))
Similar questions
Hindi,
3 months ago
Computer Science,
6 months ago
Computer Science,
6 months ago
Science,
1 year ago