Question PSC-LOOP-0054
MediumWhat will be printed by the following pseudocode?
Integer x = 0, i, j
for (each i from 1 to 3)
for (each j from 1 to 3)
x = x + i * j
end for
end for
Print x
- A.
27
- B.
36
- C.
Sign up free to see the answer and a step-by-step explanation.