| about | help | done | prefs | create account |
Logic-2 > blackjack
prev | next | chance
| Given 2 int values greater than 0, return whichever value is nearest to 21 without going over. Return 0 if they both go over.
blackjack(19, 21) → 21 blackjack(21, 19) → 21 blackjack(19, 22) → 19 ...Save, Compile, Run See Also: Example Code Java help: If Boolean Logic | Strings | While and For Loops | Arrays and Loops |
Forget It! -- delete my code for this problem 218.0
Copyright Nick Parlante 2006-09 - privacy