Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
15
Task/Guess-the-number/LiveCode/guess-the-number.livecode
Normal file
15
Task/Guess-the-number/LiveCode/guess-the-number.livecode
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
command guessTheNumber
|
||||
local tNumber, tguess
|
||||
put random(10) into tNumber
|
||||
repeat until tguess is tNumber
|
||||
ask question "Please enter a number between 1 and 10" titled "Guess the number"
|
||||
if it is not empty then
|
||||
put it into tguess
|
||||
if tguess is tNumber then
|
||||
answer "Well guessed!"
|
||||
end if
|
||||
else
|
||||
exit repeat
|
||||
end if
|
||||
end repeat
|
||||
end guessTheNumber
|
||||
Loading…
Add table
Add a link
Reference in a new issue