Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,19 @@
|
|||
(de guessTheNumber ()
|
||||
(use (Low High Guess)
|
||||
(until
|
||||
(and
|
||||
(prin "Enter low limit : ")
|
||||
(setq Low (read))
|
||||
(prin "Enter high limit: ")
|
||||
(setq High (read))
|
||||
(> High Low) ) )
|
||||
(seed (time))
|
||||
(let Number (rand Low High)
|
||||
(loop
|
||||
(prin "Guess what number I have: ")
|
||||
(T (= Number (setq Guess (read)))
|
||||
(prinl "You got it!") )
|
||||
(prinl
|
||||
"Your guess is too "
|
||||
(if (> Number Guess) "low" "high")
|
||||
"." ) ) ) ) )
|
||||
Loading…
Add table
Add a link
Reference in a new issue