Kotlinlearncs.online LogoJava
Return to List

Solve: Sum Double

Imported By: Geoffrey Challen
/ Version: 2021.4.0

Given two Int values, return their sum. Unless the two values are the same, then return double their sum.

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

Related Lessons

Stuck? You may find these lessons helpful: