Question PSC-LOOP-0080
HardWhat will be printed by the following pseudocode?
Integer n = 9, i, j, c = 0
for (each i from 1 to n)
for (each j from 1 to n)
if (i * j <= n)
c = c + 1
end if
end for
end for
Print c
- A.
23
- B.
20
- C.
Sign up free to see the answer and a step-by-step explanation.