X980: For Loop Summation

Finish the for loop below. This method should return an int representing the sum of the numbers from 1 to the parameter n. For example, if we call summation(3), this method would return 6 (or 1 + 2 + 3).

Your Answer:

Feedback

Your feedback will appear here when you check your answer.