ScratchData LogoScratchData
Back to Ratty1967UK's profile

Sum zero terminated list

RARatty1967UK•Created September 15, 2011
Sum zero terminated list
0
0
240 views
View on Scratch

Description

In response to a forum posting... The expected behavior of the program is as follows. 1.The program informs the user that it will compute the sum of a 0-terminated sequence of numbers. 2.The program prompts the user for each number. 3.The user inputs each number, one at a time. 4.Each number given by the user is added to a running total. 5.When the user gives 0 as input, the program finishes by displaying "The sum is " followed by the sum of all numbers entered by the user. Write an algorithm to compute the sum of a 0-terminated sequence of numbers given by the user.

Project Details

Project ID2030447
CreatedSeptember 15, 2011
Last ModifiedSeptember 15, 2011
SharedSeptember 15, 2011
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root