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