Kotlinlearncs.online LogoJava
Return to List

Solve: Sum of Positive Values Function

Created By: Justin Maier
/ Version: 2024.8.1

Write a function sumOfPositives that takes an int array and returns the sum of the array's positive values. If the array is empty the sum would be 0.

Related Lessons

Stuck? You may find these lessons helpful: