Write a program to print the first 10 Fibonacci numbers.Each Fibonacci numb
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/23 11:54:07
Writeaprogramtoprintthefirst10Fibonaccinumbers.EachFibonaccinumbWriteaprogramtoprintthefirst10Fibona
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