Write a program to print the first 10 Fibonacci numbers.Each Fibonacci numb
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/20 23:38:19
xP10.DUKJ~sHb B$SK5 AEr0- `| ~;J!8&UEKzk hU:ID[$Dw h
^9LX "Y2k8;.MŖtha5#FQz'm\
Write a program to print the first 10 Fibonacci numbers.Each Fibonacci numb
Write a program to print the first 10 Fibonacci numbers.Each Fibonacci numb
Write a program to print the first 10 Fibonacci numbers.Each Fibonacci numb
#include
int fun(int i)
{
if(i==1 || i==2)
return 1;
else
return fun(i-1)+fun(i-2);
}
int main()
{
int i;
for(i=1;i