Question PSC-LOOP-0016
HardWhat will be the output of the following pseudocode?
Integer s = 0
for (each i from 1 to 3)
for (each j from 1 to 3)
if (i != j)
s = s + i * j
end if
end for
end for
Print s
- A.
36
- B.
25
- C.
Sign up free to see the answer and a step-by-step explanation.