burim:python:python-labs:loesung_blatt4_aufgabe3_while_ab.py
start = 0
end = 5
total = 0
while start < end:
    new = int(input("Bitte eine Zahl eingeben: "))
    total += new
    start += 1
print ("Die Summe ist", total)
print ("Der Durchschnitt ist", total / start)
burim/python/python-labs/loesung_blatt4_aufgabe3_while_ab.py.txt · Last modified: 2019/01/21 20:55 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki