Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

reverse number

number = int(input('please enter your number: '))
reverse_num = 0
while number > 0:
    temp = number % 10
    reverse_num = reverse_num * 10 + temp
    number = number // 10
print(reverse_num)
Source by 7learn.com #
 
PREVIOUS NEXT
Tagged: #reverse #number
ADD COMMENT
Topic
Name
5+8 =