Question PSC-LOOP-0053
MediumWhat does the following pseudocode print?
Integer n = 7, i, j = 0
for (each i from 1 to n)
if (i mod 2 == 0)
continue
end if
j = j + i
end for
Print j
- A.
28
- B.
7
- C.
Sign up free to see the answer and a step-by-step explanation.