LU04.L06: Alternativer Notenschnitt

Blockly

Python

count = 0
total_marks = 0
mark = int(input('Note >'))
while mark > 0:
    total_marks = totalMarks + mark
    count = count + 1
    mark = input('Note >')
average = total_marks / count
print('Durchschnitt: ' + average)