Description: Program 1] Topic: classical problem: a pair of rabbits, from the first three months after birth month, a pair of rabbits are born, grow a small rabbit to the first month and three months after the birth of a pair rabbit, hare, if not death, the total number of rabbits asked how much per month? 1 Program analysis: the law of the rabbit number of columns 1,1,2,3,5,8,13,21 .... 2 source code:. Main () {longf1, f2 inti f1 = f2 = 1 for (i = 1 i < = 20 i++) {printf (" 12ld 12ld" , f1, f2) if (i 2 == 0) printf (" \ n" ) /* Control output per line four*/f1 = f1+f2 /* add up to two months before the assignment to a third Month*/f2 = f1+f2 /* two months before the first three months of assignment to add* /}} ===============
To Search:
File list (Check if you may need any files):
2014053082053.txt