Fibonacci Series

in Hindi - Fibonacci Series



not yet

Source Code :

RUN#include <stdio.h>
#include <conio.h>

int main()
{
int n, i, first = 0, second = 1, next;

printf("Enter the number of terms\n");
scanf("%d", &n);

printf("Fibonacci series are\n");
for (i = 0 ; i < n ; i++)
{
if (i <= 1)
next = i;
else
{
next = first + second;
first = second;
second = next;
}
printf("%d\n", next);
}
return 0;
}