0
/ 1.0
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,...
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 feedback will appear here when you check your answer.