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