Question PSC-LOOP-0039
EasyWhat does the following pseudocode print?
Integer n = 24680135, count = 0
while (n > 0)
if ((n mod 10) mod 2 == 0)
count = count + 1
end if
n = n / 10
end while
Print count
- A.
4
- B.
3
- C.
Sign up free to see the answer and a step-by-step explanation.