Use 4 spaces for each indent instead of 2.
Also, these are functions, so you have to put values into them for them to give you output.
Sis B.
asked 06/28/22Suppose there is an island with two rabbits (male and female). Every 30 days, the population of rabbits doubles. Write a program that has the user input the number of days and then calculate the new population. Use a counted loop.
Extension:
(a) Let the user specify the initial population of the island.
(b) Let the user specify how many days it takes for the population to double.
Use 4 spaces for each indent instead of 2.
Also, these are functions, so you have to put values into them for them to give you output.
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.