The population of a town A is less than the population of townB. However, the population of town A is growing faster than thepopulation of town B. Write a program that prompts the user toenter the population and growth rate of each town. The programoutputs after how many years the population of town A will begreater than or equal to the population of town B and thepopulations of both the towns at that time. (A sample input is:Population of town A = 5000, growth rate of town A = 4%, populationof town B = 8000, and growth rate of town B =2%.)
Hint: The population can be calculated as thefollowing:
,??-????????????.=,??-??????????????.?(1+???????????????????/100.0)