Question PSC-ARR-0063
HardWhat will be printed by the following pseudocode?
Integer a[6] = {1, 2, 3, 4, 5, 6}
Integer i, s = 0
for (each i from 0 to 5)
s = s + a[i] * (i + 1) * (6 - i)
end for
Print s
- A.
91
- B.
441
- C.
Sign up free to see the answer and a step-by-step explanation.