diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2023-12-03 06:24:49 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2023-12-03 06:24:49 +0000 |
commit | 3f7d2b32b4b65566a75c1e65f6d2e5b1d7b9354e (patch) | |
tree | 457b97477144ca3d6e09d4b61f4b6b5104e61c81 /wk1/lab1 | |
parent | 2ff203f3f9a8584e733216c1f459898601cdd0c3 (diff) |
Sat, Dec 2, 2023, 10:24 PM -08:00
Diffstat (limited to 'wk1/lab1')
-rw-r--r-- | wk1/lab1/population.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wk1/lab1/population.c b/wk1/lab1/population.c index bef947f..751f90f 100644 --- a/wk1/lab1/population.c +++ b/wk1/lab1/population.c @@ -10,9 +10,10 @@ int main(void) while (llamas <= end) { llamas += (n/3); + printf("%i", llamas); llamas -= (n/4); n = llamas; year++; } - printf("Years: %i\n", year); + printf("End size: %i\nYears: %i\n", n, year); } |