Kotlinlearncs.online LogoJava
Return to List

Solve: Close 10

Imported By: Geoffrey Challen
/ Version: 2021.4.0

Given 2 int values, return whichever value is nearest to the value 10, or return 0 in the event of a tie.

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

Related Lessons

Stuck? You may find these lessons helpful: