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

Username:   Password: 
 RegisterRegister   
 counted loops (for loops)
Index -> Programming, Turing -> Turing Tutorials
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
dragonboy456




PostPosted: Sat Mar 07, 2015 3:10 pm   Post subject: counted loops (for loops)

How do you make a numbers countdown on one line separated by spaces?

for decreasing i : 10 .. 1
delay (100)
put i ..
end for

that's all i have so far. It counts down on one line but it doesn't have spaces
Sponsor
Sponsor
Sponsor
sponsor
Insectoid




PostPosted: Sun Mar 08, 2015 11:14 am   Post subject: RE:counted loops (for loops)

You can add a space by using another put command immediately after 'put I..'. Note that a space is just a character and you can treat it as any other character or string.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Tutorials
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: