def printDigit(n):
n = abs(n)
while n > 0:
print(n % 10)
n //= 10
printDigit(int(input("Введите число: ")))
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
def printDigit(n):
n = abs(n)
while n > 0:
print(n % 10)
n //= 10
printDigit(int(input("Введите число: ")))