Created
December 11, 2011 08:03
-
-
Save objectsyndicate/1459256 to your computer and use it in GitHub Desktop.
Thoughts on Java and Python
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
| public class week02_ex3 { | |
| public static void main(String[] args) { | |
| int count = 1; | |
| int multiplier = 2; | |
| while (count <= 20) { | |
| System.out.println("Powers of 2^"+ count +"=" + java.lang.Math.pow(multiplier,count)); | |
| count++; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment