Search:

Type: Posts; User: GregBrannon

Search: Search took 0.10 seconds.

  1. Replies
    17
    Views
    3,982

    [SOLVED] Re: Hi Lo Dice Betting

    It would look something like this:

    In your main() method:
    while (credit > 0) {

    int bet = getBet();

    // pass the parameter bet to the winAmount() method:
    int winnings =...
  2. Replies
    17
    Views
    3,982

    [SOLVED] Re: Hi Lo Dice Betting

    Pass the value needed by the winAmount() method as a parameter and remove the code from winAmount() that calls getBet().
Results 1 to 2 of 2