This commit is contained in:
2022-03-31 14:35:56 +02:00
parent c1a450e547
commit aff8164a5c
5 changed files with 86 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
# Programm, welches wiederholend dividiert (bis zu Untergrenze)
x = round((float(input("Gebe x ein:"))),2)
# Verarbeitung mittels while
untergrenze=1
index=0
while x>untergrenze:
x=x/2
index=index+1
print(x)
print("Es wurde %smal durch 2 geteilt"%(index))