兔子生兔子问题

来源:互联网 发布:艾佛森数据 编辑:程序博客网 时间:2024/04/26 05:16
#include<iostream> using namespace std;#define MONTH  5int Feibo(int month) {  int total = 1;  if(month>=3)     total = Feibo(month-1)+Feibo(month-2);  return total; }void main() {  int total = 0;  total = Feibo(MONTH);  cout<<"total is: "<<total<<endl; }


原创粉丝点击