write a program to input an number and to reverse the set of number without using function in python
Answers
Answered by
0
Answer:
Reverse Number In Python
# Python Program to Reverse a Number using While loop.Number = int(input("Please Enter any Number: "))Reverse = 0.while(Number > 0):Reminder = Number %10.Reverse = (Reverse *10) + Reminder.Number = Number //10.print("\n Reverse of entered number is = %d" %Reverse)
Answered by
0
Answer:
Reverse Number In Python
1. # Python Program to Reverse a Number using While loop.
2. Number = int(input("Please Enter any Number: "))
3. Reverse = 0.
4. while(Number > 0):
5. Reminder = Number %10.
6. Reverse = (Reverse *10) + Reminder.
7. Number = Number //10.
8.print("\n Reverse of entered number is = %d" %Reverse)
Explanation:
Please mark me as a Brainlieast
Similar questions