Question PSC-ARR-0040
EasyWhat will be printed by the following pseudocode?
Integer a[] = {10, 1, 20, 2, 30, 3}, s = 0
for (each i from 1 to 5 step 2)
s = s + a[i]
end for
Print s
- A.
66
- B.
33
- C.
Sign up free to see the answer and a step-by-step explanation.