Link to home
Start Free TrialLog in
Avatar of kazooie21
kazooie21

asked on

until loop for population

Ok, Mexico's population is 58 million and is growing at annual rate of %7. US population is 260 million at annual rate of %2. How many years will Mexico's be greater than 1/2 of the US? This is what I have so far:

M := 58,000,000
US := 260,000,000
yrs := yrs + 1
  repeat
    M := 58,000,000 * 0.07
    US := 260,000,000 * 0.02
    yrs := yrs + 1
  until M > 1/2 US
ASKER CERTIFIED SOLUTION
Avatar of lama72phl
lama72phl

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ozo
Is this a homweork assignment?