This commit is contained in:
smayzy committed 2026-10-04 11:11:18 +02:00
1 parent 6361168409
commit bfac007c85
9 files changed
+118

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
def to_base(number, base):
digits = []
while number:
digits.append(number % base)
number //= base
return list(reversed(digits))
number = int(input("number : "))
base = int(input("base : "))
print(to_base(number, base))