Jump to content

Guess the number/With feedback: Difference between revisions

m
(Guess the number/With feedback in Gambas, Minimal BASIC, Qbasic, Run BASIC, True BASIC and Yabasic)
Line 1,158:
 
=={{header|Craft Basic}}==
<syntaxhighlight lang="basic">titlelet "hilo"n = int(rnd * 100) + 1
 
bgcolor 0, 180, 0
cls
wait
 
let n = int(rnd * 100) + 1
 
do
Line 1,186 ⟶ 1,180:
loop g <> n
 
alert "you guessed the number in ", t, " tries"</syntaxhighlight>
 
end</syntaxhighlight>
 
=={{header|Crystal}}==
305

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.