Upload code

This commit is contained in:
2025-01-20 19:40:14 +01:00
parent 71625e3e41
commit 07809d7d77
66 changed files with 8917 additions and 0 deletions

15
IO/Umwandlung Zahlensysteme.py Executable file
View File

@@ -0,0 +1,15 @@
eingabe = int(input("Zahl im Dezimalsystem: "))
system = int(input("Zahlensystem: "))
y = eingabe
out = 0
stelle = 1
while y > 0:
y = y // system
outadd = y % system
out += (outadd * stelle)
stelle *= 10
print(out)