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

21
IO/Eingabe Umwandlung easy.py Executable file
View File

@@ -0,0 +1,21 @@
eingabe = int(input("Zahl im Dezimalsystem: "))
system = int(input("Zahlensystem: "))
if system == 2:
y = bin(eingabe)
print("Resultat:", y)
elif system == 16:
y = hex(eingabe)
print("Resultat:", y)
elif system == 8:
y = oct(eingabe)
print("Resultat:", y)
else:
print("wrong")