Commit a12c904c authored by Taddeüs Kroes's avatar Taddeüs Kroes

Some final changes to assignment 2.7.

parent ad6ad746
...@@ -50,8 +50,8 @@ void sequence(int generations, int max_age) { ...@@ -50,8 +50,8 @@ void sequence(int generations, int max_age) {
int i; int i;
rabbit *r, *next = NULL; rabbit *r, *next = NULL;
printf("0");
rabbits = rabbit_born(); rabbits = rabbit_born();
printf("1");
for( i = 1; i < generations; i++ ) { for( i = 1; i < generations; i++ ) {
for( r = rabbits; r != NULL; r = next ) { for( r = rabbits; r != NULL; r = next ) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment