-
-
-
-
-
-
-
-
-
-
-
-
-
- int fibonacci(int n)
{
if(n<=0)
{
return = 0;
}
if(n==1||n==2)
{
return =1;
}
return fibonacci(n-1)+fibonacci(n-2);
)
- int fibonacci(int n)
-
-
-
-
-
-
-
-
-
-
-
-
原文地址:https://www.cnblogs.com/daran/p/10694972.html
时间: 2024-10-19 04:18:49