I doubt it. I'll give it a try though. I don't think it will because the user inputs how many reps they would like to do and then it repeats the process that many times. I need to stop that process.
He already said he tried that, though I'm not sure why it wouldn't work. break stops the innermost loop it's located in, in this case, only the while() loop.
There really isn't much point doing it one way over the other. A while() loop will work just as well as for() here, and in some ways will make more sense.
The extra if() isn't needed, though; it's redundant. These two pieces of code do the exact same thing:
might work