Reginaldojs

exercicio 22,lista 3

Aug 20th, 2012
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2. #include<Stdlib.h>
  3. int main()
  4. {
  5.     float i,j=1,k=1,l=0;
  6.     for (i=1;i<=50;i++)
  7.     {
  8.         j=k;
  9.         k=l;
  10.         l=k+j;
  11.         printf("%.0f  ",l);
  12.     }
  13.     printf("\n\n");
  14.     system("pause");
  15.     return(0);
  16. }
Advertisement
Add Comment
Please, Sign In to add comment