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.

int blackjack(int first, int second) {
return 0; // You may need to remove this starter code
}

Related Lessons

Stuck? You may find these lessons helpful: