loops...
Author |
Message |
babiie_jenny
|
Posted: Thu Mar 09, 2006 10:51 pm Post subject: loops... |
|
|
okay i hav a reallie bad teacher so its not my fault if this question sounds really stupid... when your looping the program in my case at the end so it says for example
loop
put "Do you want to play again?"
get word:*
exit when word = "no"
end loop
....whats the code or what do i do to get it 2 do to repeat the program if the person were to say yes [/quote] |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Andy
|
Posted: Thu Mar 09, 2006 11:24 pm Post subject: (No subject) |
|
|
hey! welcome to the forum, try to execute your code and you'll see that the program will only terminate when the user inputted no, if you typed yes, or anything else, the program will loop back to the beginning |
|
|
|
|
|
Delos
|
Posted: Fri Mar 10, 2006 12:15 am Post subject: (No subject) |
|
|
Hello babiie_jenny. Next time, please post your questions in the correct Forum. You had posted in [Turing Tutorials], which is reserved for, well, Tutorials. This is [Turing Help] where you may ask for (and often receive) help.
Andy has answered your question succintely. If you still are confused, simply reply to this thread.
Additionally, please use [code] tags in the future when posting code. |
|
|
|
|
|
|
|