summaryrefslogtreecommitdiff
path: root/wk1/lab1/population.c
blob: 3925e821136f40ee37f32a5b88ff836ec7028807 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdio.h>
#include <cs50.h>

int main(void)
{
    int n = get_int("Start size: ");
    int end = get_int("End size: ");
    int year = 0;
    //while (n <= end)
    //{
        n = n + (n/3);
        n = n - (n/4);
        year = year + 1;
    //}
    printf("Years: %i", year);
}