I need some help with a program I\'m writing for my Programming II class at universtiy. The question asks that one calculates the Fibonacci sequence using recursion. One mus
#include
long int A[100]={1,1};
long int fib(int n){
if (A[n])
{
return A[n];
}
else
{
return A[n]=fib(n-1)+fib(n-2);
}
}
int main(){
printf("%ld",fib(30));
}