Assume the value of the variable n is equal to zero as the loop begins.
What output will result from running the following program with one loop nested inside another?
```
LET sum = 0
LET j = 1
DO WHILE j < 3
LET k = 1
DO WHILE k < 3
LET product = j * k
OUTPUT product
LET sum = sum + product LET k = k + 1
LOOP
LET j = j + 1
LOOP
```
OUTPUT "The sum of the products is ", sum
The products are:
1 * 1
1 * 2
2 * 1
2 * 2
The output is:
1
2 2 4 The sum of the products
is 9
You might also like to view...
A Web page with frames is held together by a ____.
A. frameset B. table C. grid D. master document
A subclass is always in a "has-a" relationship with the base class.
Answer the following statement true (T) or false (F)
____________________ hardening involves updating or patching applications as required, as well as properly administering usernames and passwords (changing default usernames and passwords).
Fill in the blank(s) with the appropriate word(s).
You use the Review tab to insert a cross-reference.
Answer the following statement true (T) or false (F)