Search:

Type: Posts; User: Norm

Search: Search took 0.14 seconds.

  1. Replies
    9
    Views
    1,279

    Re: I need help with a for loop project!

    If you are talking about the while statement, try writing a 10 line program with a do{} while loop with a condition like that statement. Add some println statements in and after the loop to see what...
  2. Replies
    9
    Views
    1,279

    Re: I need help with a for loop project!

    You need to add some comments to the program's output that shows where the problem is. Something like:

    Please enter "0" zero to roll the dice again.
    You rolled a: 3
    0

    Please enter "0" zero...
  3. Replies
    9
    Views
    1,279

    Re: I need help with a for loop project!

    Where is that shown in what you posted for the program's output?
    What should the output look like if what you posted shows a wrong output?


    The formatting is still messed up. For example here...
  4. Replies
    9
    Views
    1,279

    Re: I need help with a for loop project!

    Here's a quick example:

    void method() {
    if(cond) {
    do {
    something;
    }while();
    } // end if
    } // end method()
  5. Replies
    9
    Views
    1,279

    Re: I need help with a for loop project!

    Did you post the code that created the output that is posted here?
    I don't ever get a value > 12 in the "You rolled a:" message

    You forgot to say that you are entering numbers next to the...
Results 1 to 5 of 5