兔子生兔子问题

#include
 using namespace std;

#define MONTH  5

int 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: "<


你可能感兴趣的:(Algorithm)