3 # This file is part of NIT ( http://www.nitlanguage.org ).
4 # This program is public domain
6 # Task: guess the number
7 # SEE: <http://rosettacode.org/wiki/Guess_the_number>
9 var random
= 10.rand
+1
11 print
"enter a guess :"
12 if sys
.stdin
.eof
then return
14 if guess
== random
then