Skip to content

Instantly share code, notes, and snippets.

@prydie
Created May 14, 2010 12:15
Show Gist options
  • Select an option

  • Save prydie/401083 to your computer and use it in GitHub Desktop.

Select an option

Save prydie/401083 to your computer and use it in GitHub Desktop.
#How long to double population at 1% Growth
x = 6697254041 #World bank figure of human population
y = 2 * x #Doubled value
r = 0 #Counter
while x<=y:
x=x+((x/100)*1.14)
r=r+1
print r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment