Question PSC-ARR-0029
EasyWhat will be the output of the following pseudocode?
Integer a[] = {2, 7, 4, 9, 6}, count = 0
for (each i from 0 to 4)
if (a[i] mod 2 == 0)
count = count + 1
end if
end for
Print count
- A.
12
- B.
5
- C.
Sign up free to see the answer and a step-by-step explanation.