How do I end do while statement in this situation: I have a switch statement and in one of my cases I do a calculation. The condition t says enter a number, if it is positive you go on. If it is negative it continues back to the top to enter a positive variable. Then I have my while statement says that condition <= 0 then it go on and to the next do while statement. So then I enter the second number for the calculation it suppose to do the same thing if it is negative tells me to enter positive variable it does not do that. Then on the last while I have the same condition <= 0. Then right under the while statement I have formula.
I have tired all kinds of things to stop the last while statement to make sure the number is positive before it reads the formula. I entered a break then is says statement not reachable. Or is there some way to make sure it looks at the last while before moving on to the formula.
Sorry this is so long but if any one can help a little that would be greatly appreciated also if any go web sites to look
java help on.