Skip to main content

Posts

T he population of town A is less than the population of town B. However, the population of town A is growing faster than the population of town B. Write a program that prompts the user to enter the population and growth rate of each town. The program outputs after how many years the population of town A will be greater than or equal to the population of town B and the populations of both the towns at that time. REQUIREMENT IDENTIFICATION. 1. Population of Town A, growth rate of Town A, Population of Town B, growth rate of Town B.  2. Write a program that prompt the user to enter the population and growth rate of each town 3. The population of town A(A) is less than the population of town B(B), (use a for loop and if statement).  4. Include c math library so as to use pow function.