Computer Science Canada

Turing - Repeating a program help!

Author:  Bobby321 [ Thu Jan 12, 2012 8:11 pm ]
Post subject:  Turing - Repeating a program help!

What is it you are trying to achieve?
To find a code where it helps me repeat a program.



What is the problem you are having?
How to repeat a program after a user is done answering it.


Describe what you have tried to solve this problem
Researched...


Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
var x,y,botcor,topcor :int
%red box
drawfillbox ( 100, 280, 250, 310, 12)

put"Please click on the botton to repeat"
buttonwait ("down", x, y, botcor, topcor)
%red box
if x >= 100 and x <= 150 and y >= 270 and y <= 300 then
colour ( 12)
end if

Turing:


<Add your code here>



Please specify what version of Turing you are using
4.1.1

Author:  Raknarg [ Thu Jan 12, 2012 8:40 pm ]
Post subject:  RE:Turing - Repeating a program help!

There is a thing called loop. You put code inbetween:

loop
[code]
end loop

and once the program gets to that end loop, it'll go to its corrosponding loop. It'll repeat everything inside.


: