There are 10,000 people in a town whose population increases by 10% each year. Develop a program that determines how many years it would take for the population to exceed 30,000.
solve that for years, directly, if you want.
A loop is much easier to code. But it isn't required, you can solve it with some logs. Don't forget to round up to the next year if you solve it directly.