Question PSC-LOOP-0070
HardWhat does the following pseudocode print?
Integer s = 0, i
for (each i from 1 to 100)
if (i mod 7 == 0)
continue
end if
if (i > 20)
break
end if
s = s + i
end for
Print s
- A.
168
- B.
210
- C.
Sign up free to see the answer and a step-by-step explanation.