Advertisement
Mastercpp

serie fibanocci

Aug 11th, 2015
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1.  
  2. numero = 1
  3. ultimo = 0
  4. penultimo = 0
  5.  
  6. print(numero)
  7.  
  8. for conteo in range(0,15):
  9.     penultimo = ultimo
  10.     ultimo = numero
  11.     numero = penultimo + ultimo
  12.     print(numero)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement