☑Kizspy.me
(Choose 1 answer)
☐ A
(See picture)
A. 5
☐ E
Back
Next
B. None of the other choices is
correct
C. 7
D. 8
E. 10
Given the algorithm.
procedure la (a1, a2, ..., an integers)
m:ai;
t:= 0
fori:= 2 to n
if (a ≥m) then
m:=a
t:=t+1
FUQ.sh
sh the exam.
If input is the list
[1, 2, 3, 6, 7, 7, 4, 8, 8, 6]
then how many additions are used?