I've created a loop to calculate the number of rabbits in population after 7 iterations (initial population = 2) with a growth rate of 0.8.
while dt <= 7
totalRabbits = initialRabbits + (initialRabbits * b * dt)
initialRabbits = totalRabbits
dt = dt+1
The next thing I need to do is plot the time (1-7) against the population at each time. I'd like to put these values into an array. How can I do this?