Question PSC-LOOP-0059
MediumWhat is the output of this pseudocode?
Integer row, col
for (each row from 1 to 3)
for (each col from 1 to 3)
if (col > row)
Print 0
else
Print row
end if
end for
end for
- A.
1 0 0 2 2 0 3 3 3
- B.
0 0 1 0 2 2 3 3 3
- C.
Sign up free to see the answer and a step-by-step explanation.