Guess the number: Difference between revisions
→{{header|langur}}
Langurmonkey (talk | contribs) m (→{{header|langur}}: replace deprecated ZLS token with "") |
Langurmonkey (talk | contribs) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1,167:
=={{header|EasyLang}}==
<syntaxhighlight
n =
write "Guess a number between 1 and 10: "
repeat
Line 1,269:
=={{header|Elena}}==
ELENA
<syntaxhighlight lang="elena">import extensions;
public program()
{
int randomNumber := randomGenerator.
console.printLine("I'm thinking of a number between 1 and 10. Can you guess it?");
bool numberCorrect := false;
Line 1,922:
<syntaxhighlight lang="langur">writeln "Guess a number from 1 to 10"
val .n =
for {
val .guess = read ">> ", RE/^0*(?:[1-9]|10)(?:\.0+)?$/, "bad data\n", 7, ""
Line 3,756:
=={{header|Wren}}==
<syntaxhighlight lang="
import "random" for Random
|