Looping in Lab 2 -
07-13-2010, 12:50 AM
In our most recent assignment, we were asked to have our program loop if the user responded with yes, YES, or Yes. I used a While statement instead of just the Loop or If/Else statements. So as long as they were choosing one of those words, it was going to continue looping.
It took me a little while to figure out how to add the third statement into the condition because it looked like the "a or b" was your only option (basically that you couldn't have an "a or b or c" scenario. I did figure out though that you just have to drag the "a or b" option in twice to get that to work.
|