Write a program to extract each digit from an integer, in the reverse order


Topic: Write a program to extract each digit from an integer, in the reverse order

Solution

number = 7536
while (number > 0):
    digit = number % 10
    number = number // 10
    print(digit, end=" ")



List all Python Programs