Kotlinlearncs.online LogoJava
Return to List

Solve: Blackjack

Imported By: Geoffrey Challen
/ Version: 2021.7.0

Given 2 Ints greater than 0, return whichever value is nearest to 21 without going over. Return 0 if they both go over.

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

Related Lessons

Stuck? You may find these lessons helpful: