Created
July 12, 2012 21:36
-
-
Save phl0w/3101196 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
| public class Challenge { | |
| public static void main(String... args) { | |
| System.out.println(function(8)); | |
| } | |
| public static int function(int a) { | |
| int temp = 0; | |
| for (int i = 0; i <= a; i++) { | |
| temp += i; | |
| } | |
| return temp; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment