Created
May 14, 2010 12:15
-
-
Save prydie/401083 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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