summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2023-12-03 08:24:08 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2023-12-03 08:24:08 +0000
commit5e7c1e88527e908696d2da1827ced9a8015c40bb (patch)
treee4f40946059939047793b93c23de733aba1170d6
parent5fe32a2f3c2c247059a2f91b42f03b652e58fe81 (diff)
Sun, Dec 3, 2023, 12:24 AM -08:00
-rw-r--r--wk1/lab1/population.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wk1/lab1/population.c b/wk1/lab1/population.c
index e094e19..0ade623 100644
--- a/wk1/lab1/population.c
+++ b/wk1/lab1/population.c
@@ -18,7 +18,7 @@ int main(void)
int year = 0;
while (n < end)
{
- n += (float) (n / 12);
+ int c = (float) n + (n / 12);
year++;
}
printf("%d Years: %i\n", n, year);