Question PSC-LOOP-0027
EasyWhat will be the output of the following pseudocode?
Integer count = 0
for (each i from 1 to 3)
for (each j from 1 to i)
count = count + 1
end for
end for
Print count
- A.
3
- B.
9
- C.
Sign up free to see the answer and a step-by-step explanation.