So I am attempting to run this code, but for some reason my final print function is not printing to the terminal. Can you help me figure out what I am doing wrong?
#include <cs50.h>
#include <stdio.h>
int main(void)
{
int start_pop = get_int("Please enter starting population size: ");
int end_pop = get_int("Please enter ending population size: ");
int years = 0;
int new_pop = start_pop;
do
{
new_pop = new_pop + new_pop / 3 - new_pop / 4;
}
while (new_pop < end_pop);
{
return new_pop;
years++;
}
return years;
printf("Years: %i", years);
}