Drop links or images here to add them to the editor.

Schrijf een programma dat de som berekent van een reeks getallen die de gebruiker invoert. De gebruiker typt X om te stoppen.

Druk daarna af: Totaal is <som>

Voorbeeld:

Invoer Uitvoer
5 3 7 X Totaal is 15
1 2 3 4 X Totaal is 10
100 200 X Totaal is 300