Question PSC-ARR-0038
EasyWhat will be the output of the following pseudocode?
Integer a[] = {2, 4, 6}
for (each i from 0 to 2)
a[i] = a[i] * a[i]
end for
Print a[2]
- A.
12
- B.
36
- C.
16
- D.
6
Sign up free to see the answer and a step-by-step explanation.