Consider the following algorithm:
last = 0
curr = 1
while(curr < 10):
print(curr)
temp = last
last = current
current = last + temp
(a) What is the sequence of values printed by thisalgorithm?
(b) How many total instructions are executed by this algorithm?Remember that if the same instruction is executed twice, it countsas two total instructions
Expert Answer
An answer will be send to you shortly. . . . .