1#include<stdio.h>
2int f(int);
3int main()
4{
5int n, m= 0, i;
6printf("Enter Total terms:n");
7scanf("%d", &n);
8printf("Fibonacci series terms are:n");
9for(i = 1; i <= n; i++)
10{
11printf("%dn", fibonacci(m));
12m++;
13}
14return 0;
15}
16int fibonacci(int n)
17{
18if(n == 0 || n == 1)
19return n;
20else
21return(fibonacci(n-1) + fibonacci(n-2));
22}
23