Question PSC-LOOP-0043
MediumWhat will be printed by the following pseudocode?
Integer count = 0, i, j
for (each i from 1 to 5)
for (each j from i to 5)
count = count + 1
end for
end for
Print count
- A.
20
- B.
25
- C.
Sign up free to see the answer and a step-by-step explanation.