RosettaCodeData/Task/Guess-the-number/Sidef/guess-the-number.sidef
2017-09-25 22:28:19 +02:00

6 lines
135 B
Text
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var n = pick(1..10)
print 'Guess the number: '
while (n != read(Number).int) {
print 'Wrong! Guess again: '
}
say 'Well guessed!'