Question: 18
(Choose 1 answer)
(See picture)
A. 6
B. 7
C. 8
D. 10
E. None of the other choices is correct
Given the algorithm
procedure la (c, a0, a1, ..., an integers)
p: = 1 m:= a
for i:= 1 to n p: = p*c
m: = m + a₁ * p
If the input consists of c = 4 and [a0, a1,...,an] = [3, 6, 7, 8, 3]
how many multiplications (*) are used?