Skip to content

Instantly share code, notes, and snippets.

@objectsyndicate
Created December 11, 2011 08:03
Show Gist options
  • Select an option

  • Save objectsyndicate/1459256 to your computer and use it in GitHub Desktop.

Select an option

Save objectsyndicate/1459256 to your computer and use it in GitHub Desktop.
Thoughts on Java and Python
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