#include<stdio.h>

#include<conio.h>

Void main( )

{

Int n, i, c, a = 0, b = 1;

printf(“Enter Fibonacci series of n’th term”);

scanf(“%d”, & n);

printf(“%d%d”, a, b);

for ( i = 0; I <= (n-3); i++)

{

c = a + b

a = b

b = c

printf(“%d”,c);

}

getch( );

}

__Out put:__

Enter the Fibonacci series of n’th term : 7

0112358

## No comments:

## Post a Comment