Friday, May 13, 2011

A Small Quiz Script :)

There are lots of useful scripts already published on this blog. You can create even more of them with the help of Dr.Batcher. Now it's time for jokes. Let us introduce a small quiz script that can be useful to check whether you are lucky today. Hope you'll enjoy it:)
@echo off
set i=0
echo Thinking of a number...
:rand
set nmb=%random%
if %
nmb% GTR 10 goto rand
if %
nmb% EQU 0 goto rand
echo Now you can try 3 times to guess the right one!
:enter
set /p "ent=Your number : "
set /a i=%i%+1
if %ent% EQU %
nmb% (
echo You're lucky!
pause
exit
)
if %i% LSS 3 (
goto enter
)
if %i% EQU 3 (
echo Game Over:(
pause
)

No comments:

Post a Comment

Translate