Question PSC-LOOP-0065
HardWhat will be printed by the following pseudocode?
Integer i, j, k, c = 0
for (each i from 1 to 4)
for (each j from i + 1 to 4)
for (each k from j + 1 to 4)
c = c + 1
end for
end for
end for
Print c
- A.
24
- B.
4
- C.
Sign up free to see the answer and a step-by-step explanation.