Created
December 11, 2011 08:05
-
-
Save objectsyndicate/1459260 to your computer and use it in GitHub Desktop.
Thoughts on Java and Python 1
This file contains 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
count = 1 | |
multiplier = 2 | |
while count: | |
if count <= 20: | |
print "Powers of 2^%s = %s" % (count, multiplier**count) | |
count = count + 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment