Choose Category
//nth fibonacci term #include<stdio.h> int fib(int n) { if ( n <= 1 ) return n; return fib(n-1) + fib(n-2); } int main () { int n ; printf("Enter Number to Compute nth Fibonacci Series"); scanf("%d",&n); printf("\n%dth term of fibonacci series number is %d",n, fib(n)); return 0; }