diff --git a/examples/guessing_game.claro b/examples/guessing_game.claro new file mode 100644 index 0000000..284a0a0 --- /dev/null +++ b/examples/guessing_game.claro @@ -0,0 +1,12 @@ +SAY "Guess the Number Game" + +SET secret TO 7 + +ASK "Guess a number from 1 to 10:" AS guess + +IF guess = secret + SAY "You got it!" +ELSE + SAY "Not this time. The number was:" + SAY secret +ENDIF