In a variable.
Here is the improved program, with the change part way made:
' First ask the user for how many numbers are going to be added. ' Then ask the user for each number, one by one. ' Add them up, print the sum. ' __________________________________ __________________________________ LET SUM = 0 LET COUNT = 1 DO WHILE COUNT <= HOWMANY PRINT "Enter a number" INPUT NUMBER LET SUM = SUM + NUMBER LET COUNT = COUNT + 1 LOOP PRINT "The sum is", SUM END
You may wish to look at a previous example to get an idea about how to make the change.
Fill in the blanks so that the user is asked how many numbers to add up.