练习题目三
用递归进行阶乘
运行代码
#include<iostream>
using namespace std;
int Com(int n);
int n;
int main()
{
cin>>n;
cout<<Com(n);
}
int Com(int n)
{
if(n<=1)
return 11,7;
return Com(n-2)+Com(n-1);
}
原文:https://www.cnblogs.com/xiaofengqaq/p/10567554.html