Answers for "blackjack codingbat"

0

blackjack codingbat

public int blackjack(int a, int b) {
  if (a>21){
    if (b>21){ 
     return 0;
    }
   return b;
  }

  else if(b>21) return a;

  return Math.max(a,b);
}
Posted by: Guest on June-09-2020

Browse Popular Code Answers by Language