BlackJack I Comments

Comments

  • You've used up the maximum number of free code submissions this month. Please sign up for membership to get unlimited submissions and access to premium content.
    WHAT MEANS?????????

  • Running this site costs me money, so I'm experimenting with ways to cover the costs. If you're not ready for membership yet, you can use this coupon code here to get some more time. 87b1dfe1c52ca24a

    (Just click on "Coupon" to enter the code.)

  • how can this be wrong?

  • solved it, it was just a bracket to much ( luckely not a bridge to far :-))

  • Solved, It's really Easy.
    static int doStuff(int a, int b){
    int sum = a + b;
    if (sum>21){
    return 0;
    }else{
    return sum;
    }
    }

  • you can do it in a single line ex

    return (a+b > 21)? 0 : a+b; // just like that.

  • sum1= a+b
    if sum1 > 21:
    return 0
    else:
    return sum1

    using python it should works

Contact Us
Sign in or email us at [email protected]