Corretude - UFCG
Corretude - UFCG
Corretude - UFCG
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Introdução Indução Algoritmos Recursivos Algoritmos IterativosExemplo 13Considere o algoritmo iterativo de Fibonacci abaixo.Fib(n)1 if n == 02 return 03 else a = 04 b = 15 i = 26 while i ≤ n7 c = a + b8 a = b9 b = c10 i = i + 111 return bProf. Dr. Leandro Balby Marinho 37 / 44 <strong>UFCG</strong> CEEI