Created
January 24, 2009 17:42
-
-
Save johnmichel/51491 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
// holy crap. this is old. and probably broken. | |
double total = 0; | |
for (int i=0; i <= 1000; i++) { | |
total = total + (int)Math.pow(i,i); | |
if (i == 1000) | |
System.out.println(Math.pow(1000,1000)); | |
System.out.println(total); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment