
#include<stdio.h>
#include<conio.h>
main()
{
int n;
int fib(int n);
printf("Enter the whichth number you want to see in fibnacci series :");
scanf("%d",&n);
printf("\n the term is %d",fib(n));
getch();
return 0;
}
int fib(int n)
{
if(n==0||n==1)
return n;
return (fib(n-1)+fib(n-2));
}