题目:求斐波那契数列。
分别用
- 1 递归
- 2 循环
求出斐波那契数列。
#include <stdio.h>
//1.递归
int Fib(int n)
{
if (n<3)
return 1;
else
return
题目:求斐波那契数列。
分别用
求出斐波那契数列。
#include <stdio.h>
//1.递归
int Fib(int n)
{
if (n<3)
return 1;
else
return