Practice ยท 1 of 5
Running total
Implement long total(int[] values) returning the sum of all elements. An empty array sums to 0.
Difficulty: beginner
Press Submit to check your solution.
Back to lesson: Practice: Practice: Loops
Practice ยท 1 of 5
Implement long total(int[] values) returning the sum of all elements. An empty array sums to 0.
Difficulty: beginner
Back to lesson: Practice: Practice: Loops