Question PSC-LOOP-0034
EasyWhat will be the output of the following pseudocode?
Integer count = 0
for (each i from 1 to 50)
if (i mod 7 == 0)
count = count + 1
end if
end for
Print count
- A.
7
- B.
50
- C.
Sign up free to see the answer and a step-by-step explanation.