Modify the example program immediately preceding these practice problems to sum the integers from 1 to 10.

What will be an ideal response?


Replace DO WHILE n < = 5 with DO WHILE n < =10

The modified program is:
LET n 1
LET sum = 0
DO WHILE n < = 10
LET sum = sum +11 LET n = n + 1
LOOP
OUTPUT sum
Note: The output will be 55.

Computer Science & Information Technology

You might also like to view...

________ sound is a type of audio system where the listener hears the sound as if it were coming from all directions

Fill in the blank(s) with correct word

Computer Science & Information Technology

Which of the following CANNOT be represented by a single byte?

A) A letter of the alphabet such as Y B) A word such as Tom C) A number such as 45 D) A special character such as @

Computer Science & Information Technology

A cold site provides which of the following?

A. Hardware systems B. Software systems C. Power and air conditioning systems D. The servers

Computer Science & Information Technology

When you save a document containing jQuery Mobile widgets, Dreamweaver creates a(n) ____________________ folder in which to store the widget files.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology