Question PSC-ARR-0024
EasyWhat is the output of this pseudocode?
Integer a[] = {7, 3, 9, 2, 6}
Integer m = a[0]
for (each i from 1 to 4)
if (a[i] < m)
m = a[i]
end if
end for
Print m
- A.
6
- B.
2
- C.
Sign up free to see the answer and a step-by-step explanation.