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

Username:   Password: 
 RegisterRegister   
 Turing - Repeating a program help!
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Bobby321




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




PostPosted: 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.
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  [ 2 Posts ]
Jump to:   


Style:  
Search: