Modify the example program immediately preceding these practice problems to sum the squares of the integers from 1 to 5.
Replace LET sum = sum ± n with LET sum = sum + n * n
The modified program is:
```
LET n = 1
LET sum = 0
DO WHILE n < = 5
LET sum = sum + n * n LET n = n + 1
LOOP
OUTPUT sum
```
Note: The output will be 55.
Computer Science & Information Technology
You might also like to view...
CentOS and other Linux operating systems owe their parentage to what operating system?
A. DOS B. UNIX C. GNU D. Windows
Computer Science & Information Technology
A(n) ____ file uses a format for Web- and DVD-based digital video made popular by Microsoft.
A. .mov B. .rm C. .wmv D. .mpg
Computer Science & Information Technology
Pointer variables must be initialized if you want them to point to something.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology
Answer the following statement(s) true (T) or false (F)
UDP provides error checking, but not sequencing.
Computer Science & Information Technology