Guess the number/With feedback: Difference between revisions
→{{header|Craft Basic}}
Basicgames (talk | contribs) |
Basicgames (talk | contribs) |
||
Line 1,033:
<syntaxhighlight lang="basic">title "hilo"
bgcolor 0, 180, 0
let r = int: (rnd) * 100 + 1▼
cls
wait
do
Line 1,042 ⟶ 1,043:
let t = t + 1
input "
if g
alert "
endif
if g >
▲ alert "too low"
endif
alert "you guessed the number in ", t, " tries"
=={{header|Crystal}}==
|