unsigned long __cdecl fibonacci(unsigned long) 错误
帮看看下面程序有什么错误了。谢了
#include<iostream.h>
unsigned long fibonacci(unsigned long);
int main()
{
unsigned long number,result;
cout<<"Enter an integer:";
cin>>number;
result=fibonacci(number);
cout<<"fabonacci("<<number<<")="<<result<<endl;
return 0;
}
unsigned long fabonacci(unsigned long n)
{
if (n == 0 || n == 1)
return 1;
else
return fibonacci(n-1) * fibonacci(n-2);
}