Guest User

Untitled

a guest
Jan 23rd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3. {
  4. int successivo=0,numero_precedente,numero_corrente,somma,i;
  5. numero_precedente=0;
  6. numero_corrente=1;
  7. for(i=1;i <11;i++)
  8. {
  9.  
  10. somma=numero_precedente + numero_corrente;
  11. numero_precedente=numero_corrente;
  12. numero_corrente=somma;
  13.  
  14. }
  15. printf("%d",somma);
  16. getchar();
  17. getchar();
  18. return 0;
  19. }
Add Comment
Please, Sign In to add comment