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

Username:   Password: 
 RegisterRegister   
 help with if statement
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
cheezyman




PostPosted: Wed Feb 23, 2011 8:17 pm   Post subject: help with if statement

Hi I just started turing in school. I am trying to make a shape move a certain distance from 100-200 when entered. But i cant figure out how to do that. I know i need to use if but i don't know how to make it accept only numbers from 100-200. I hope my question makes sense any help/advice would be appreciated
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Wed Feb 23, 2011 8:40 pm   Post subject: RE:help with if statement

code:

var num : int := 201
if (num > 200) then
   put "num is larger than 200"
end if
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
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: