Rabbit Rabbit Health

#include <stdio.h>
#include <stdlib.h>

// If the rabbit in two months after birth, have the ability to reproduce, after have the ability to reproduce
// this month to give birth to a small rabbit to rabbit. Assuming that all rabbits will not die
// Health has been able to go, then two years later the number of rabbits breed can do 
int main () // Fibonacci number
{
 Long A = 1, b = 1, c, i;
 for (i = 3; i <= 24; i ++) {// first trimester
  C = A + B;
  A = B;
  B = C;
 }
 after printf ( "year, a total of rabbits% ld \ n-! ", c);

 system("pause");
 return 0;
}

Guess you like

Origin www.cnblogs.com/Leafbud/p/12559015.html