03-09-2004, 09:38 PM
Heres my 10 liner; made a long time ago and not that impresive oh and simflied to make it a 10 liner....
print "I have have thought of a number between 1 to 10"
1: label:
2: guess = guess + 1
3: input "", num
4: randomize timer
5: numb = int(rnd * 10) + 1
6: if num = numb then goto exit
7: print "Wrong number, try again."
8: goto label
9: exit:
10: print "You guessed the number in ", guess, " attempts
print "I have have thought of a number between 1 to 10"
1: label:
2: guess = guess + 1
3: input "", num
4: randomize timer
5: numb = int(rnd * 10) + 1
6: if num = numb then goto exit
7: print "Wrong number, try again."
8: goto label
9: exit:
10: print "You guessed the number in ", guess, " attempts
atos-Software
http://www.datacentertalk.com - interested in how web hosting works? Here the place to go to find out.
http://www.datacentertalk.com - interested in how web hosting works? Here the place to go to find out.