Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
9
Task/Guess-the-number/Red/guess-the-number.red
Normal file
9
Task/Guess-the-number/Red/guess-the-number.red
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
Red []
|
||||
#include %environment/console/CLI/input.red
|
||||
random/seed now
|
||||
print "I have thought of a number between 1 and 10. Try to guess it."
|
||||
number: random 10
|
||||
while [(to integer! input) <> number][
|
||||
print "Your guess was wrong. Try again."
|
||||
]
|
||||
print "Well guessed!"
|
||||
Loading…
Add table
Add a link
Reference in a new issue