How many elementary operations are used in the following algorithm?
Step 1 Set a=1, b=1 c=2, and k=1.
Step 2 while k<n
(a) Replace c with a+b
(b) Replace a with b
(c) Replace b with c
(d) Replace k with k+1
endwhile
Step 3 Print b.
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments