Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 loops...
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
babiie_jenny




PostPosted: 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
Sponsor
sponsor
Andy




PostPosted: 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




PostPosted: 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.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: