Computer Science Canada command to go to beginning of loop |
Author: | n00b.skillz [ Sat Jan 13, 2007 8:28 pm ] | ||
Post subject: | command to go to beginning of loop | ||
in my proc i am making a statment such as
Cervantes has added code tags. |
Author: | CodeMonkey2000 [ Sat Jan 13, 2007 8:52 pm ] | ||
Post subject: | Re: command to go to beginning of loop | ||
I think what you want is to make sure that the user inputs a valid answer. for that i would put it in another loop and wont allow the loop to exit until the user inputs a valid answer. Sort of like:
|
Author: | ericfourfour [ Sat Jan 13, 2007 9:07 pm ] |
Post subject: | RE:command to go to beginning of loop |
The only command to go to the next iteration of a loop, in Turing, is end loop. |
Author: | wtd [ Sat Jan 13, 2007 10:56 pm ] |
Post subject: | RE:command to go to beginning of loop |
"end loop" is best not thought of as a "command". It is a keyword which delimits the end of a loop. |
Author: | n00b.skillz [ Mon Jan 15, 2007 6:06 pm ] |
Post subject: | Re: command to go to beginning of loop |
okay thanks all it is greatly appreciated ![]() ![]() |