Computer Science Canada

help with if statement

Author:  cheezyman [ 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

Author:  Tony [ 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


: