Alice Community  

Go Back   Alice Community > General Discussion > The Lounge

Thread Tools Display Modes
Looping in Lab 2
Posts: n/a
Smile 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.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Copyright ©2023, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.