Kotlinlearncs.online LogoJava
Return to List

Solve: Lone Sum

Imported By: Geoffrey Challen
/ Version: 2021.7.0

Given three Int values, return their sum. However, if one of the values is the same as another of the values, it does not count towards the sum.

fun loneSum(
first: Int,
second: Int,
third: Int,
): Int {
return 0 // You may need to remove this starter code
}

Related Lessons

Stuck? You may find these lessons helpful: