summaryrefslogtreecommitdiff
path: root/wk1/lab1/population.c
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-02-17 22:59:23 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-02-17 22:59:23 +0000
commita2682d25c6cd0e069ff73a43df74c17a63caabac (patch)
treebc5621a5a4b99495a64e41d2407cc5cde22061de /wk1/lab1/population.c
parentd3c2d73736cc188e7ad089bfb29d42bf29faf881 (diff)
Sat, Feb 17, 2024, 2:59 PM -08:00
Diffstat (limited to 'wk1/lab1/population.c')
-rw-r--r--wk1/lab1/population.c25
1 files changed, 0 insertions, 25 deletions
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 <cs50.h>
-#include <stdio.h>
-
-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);
-}