Heyy guys,,,
A very cheerful Good morning☺
Need ur help guys.. .
Q) write a Python programming language that reverse an array of integers (in place).
plzz do it fast....I have some more questions......☺
Answers
Answered by
2
Hey.... Dear... Your answer is in below... ☺️☺️
# 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)
Hope it helps you ❤️❤️❤️
# 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)
Hope it helps you ❤️❤️❤️
tulimitra52:
Copyed from google
Answered by
0
ans: please assemble it- 1) number=int(input(''please enter any number:'')) 2) reverse=0 3) while(number>0): 4) reminder=number%10 5) reverse=(reverse*10)+reminder 6) number=number//10.
Similar questions