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...
Type: Posts; User: Norm
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...
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...
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...
Here's a quick example:
void method() {
if(cond) {
do {
something;
}while();
} // end if
} // end method()
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...