From a2682d25c6cd0e069ff73a43df74c17a63caabac Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Sat, 17 Feb 2024 22:59:23 +0000 Subject: Sat, Feb 17, 2024, 2:59 PM -08:00 --- wk1/lab1/population.c | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 wk1/lab1/population.c (limited to 'wk1/lab1/population.c') diff --git a/wk1/lab1/population.c b/wk1/lab1/population.c deleted file mode 100644 index 0ade623..0000000 --- a/wk1/lab1/population.c +++ /dev/null @@ -1,25 +0,0 @@ -#include -#include - -int main(void) -{ - int n; - do - { - n = get_int("Start size: "); - } - while (n < 9); - int end; - do - { - end = get_int("End size: "); - } - while (end <= n); - int year = 0; - while (n < end) - { - int c = (float) n + (n / 12); - year++; - } - printf("%d Years: %i\n", n, year); -} -- cgit v1.2.3