I am stuck at this one. I just need somekind of a hint to move on I guess. I do not want to take a look at "Walkthrough". I need help with for loop. I cannot think of any condition that should be there. I mean I would like to use startSize >= endSize because in that case loop will be true so it will stop right ? Any hint much apreciated!
#include <cs50.h>
#include <stdio.h>
int main(void)
int startSize;
do
{
startSize = get_int("Start size: ");
}
while (startSize <= 9);
int endSize;
do
{
endSize = get_int("End size: ");
}
while (endSize <= startSize);
for(int n = 1; ; n++)
{
int x; // current population
x = startSize + (startSize / 3) - (startSize / 4);
printf("%d\n", x);
}
}