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

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

The modified program is:
```
LET n = 1
LET sum =
DO WHILE n < = 100
LET sum = sum + n LETn=n+1
LOOP
OUTPUT sum
```

Note: The output will be 5050. Compare this to the solution of problem A-6.11.

Computer Science & Information Technology

You might also like to view...

Form templates are provided by Microsoft and users CANNOT create their own

Indicate whether the statement is true or false

Computer Science & Information Technology

The disorder known as ____________________ occurs when the technology consumes someone's entire social life.

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

Computer Science & Information Technology