Fibanaci Series in C Language

This is a c program. it is very important and usefull in interviews.
1.   Open the turbo c compiler.
2.   Write this c code.
3.   Run and give a succesfully output.
 
C CODE:
  1. #include < stdio.h >  
  2.     main()   
  3.         {  
  4.         int a, b, c, count = 0, i, n;  
  5.         printf("\n enter the limit");  
  6.         scanf("%d", & n);  
  7.         a = -1;  
  8.         b = 1;  
  9.         for (i = 1; i <= n; ++i)  
  10.         {  
  11.             c = a + b;  
  12.             count = count + 1;  
  13.             a = b;  
  14.             b = c;  
  15.             printf("\n %d", c);  
  16.         }  
  17.     }  
The Fibanaci program is successfully completed.