0
Q:

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);
}
0

New to Communities?

Join the community