Skip to content
Snippets Groups Projects
Commit a12c904c authored by Taddeüs Kroes's avatar Taddeüs Kroes
Browse files

Some final changes to assignment 2.7.

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