Last active
August 29, 2015 14:09
-
-
Save DTSCode/9b532ca68ce3e1365e3d to your computer and use it in GitHub Desktop.
example.ts - shows off some basic features of the language
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import stdlib | |
routine main : string args | |
while true | |
print("Please enter a number between 1-10: ") | |
int num = NOVAL | |
read(num) | |
if num < 1 | |
print("Too Small. Wrong. ") | |
continue | |
endif | |
elsif num > 10 | |
print ("Too Big. Wrong. ") | |
continue | |
endif | |
else | |
print("You entered: ", num) | |
endif | |
endwhile | |
stdlib.exit(1) | |
endrout |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment