Example ZenCode scripting engine.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1234567891011 |
- var correct = false;
- while !correct {
- val value = randomInt(10);
- val guess = readLine("Guess a number 0-9: ");
- if value == int.parse(guess) {
- println("You were right!");
- correct = true;
- } else {
- println("Nope, try again...");
- }
- }
|