Search found 2 matches
- 25 Feb 2012 18:02
- Forum: DOS Batch Forum
- Topic: Very basic guess the number program HELP!
- Replies: 4
- Views: 4455
Re: Very basic guess the number program HELP!
I think I have corrected the mistakes! Still not working ( @echo off set Num=%random% set /a %Count%=0 echo Try to guess the number! :Top set /a %count%+1 set /p udefine= if %udefine% GTR %Num% GOTO Lower if %udefine% LSS %Num% GOTO Highter if %udefine%==%num% Goto Win :Lower echo Too high try LOWER...
- 25 Feb 2012 11:57
- Forum: DOS Batch Forum
- Topic: Very basic guess the number program HELP!
- Replies: 4
- Views: 4455
Very basic guess the number program HELP!
I'm just starting to learn a few new languages and I was trying to make a batch program that chose a random number with %random% then told you higher or lower until you guessed correctly... So far I have this: @echo off set Num=%random% set /a Count=0 echo Try to guess the number! :Top set /a %count...