C | Fibo

/ 11 Sept 2013 /
Here it is folks


#include <stdio.h>

main() 
{ 
 int n, first = 0, second = 1, next, c;
 
 
 for ( c = 0; c < 20; c++)
 {
  
  if ( c <= 1 ) next = c;
  else 
  {
   next = first + second;
   first = second;
   second = next;
  }
  
  printf("%d\n", next);
 
 }
 
 return 0;
}
 
Copyright © 2010 M(ath)+me, All rights reserved