Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,20 @@
|
|||
OpenConsole()
|
||||
|
||||
Repeat
|
||||
; Ask for limits, with sanity check
|
||||
Print("Enter low limit : "): low =Val(Input())
|
||||
Print("Enter high limit: "): High =Val(Input())
|
||||
Until High>low
|
||||
|
||||
TheNumber=Random(High-low)+low
|
||||
Debug TheNumber
|
||||
Repeat
|
||||
Print("Guess what number I have: "): Guess=Val(Input())
|
||||
If Guess=TheNumber
|
||||
PrintN("You got it!"): Break
|
||||
ElseIf Guess < TheNumber
|
||||
PrintN("Your guess is to low.")
|
||||
Else
|
||||
PrintN("Your guess is to high.")
|
||||
EndIf
|
||||
ForEver
|
||||
Loading…
Add table
Add a link
Reference in a new issue