Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off &setlocal
- title TheLottery
- set/a wins=0
- :Start
- cls
- echo choose your numbers. 1-10 only!
- set/p n1=1st:
- set/p n2=2nd:
- set/p n3=3rd:
- set/p n4=4th:
- set/p n5=5th:
- set/p n6=6th:
- :play1
- if not "%n1%"=="%random% %% 10" goto play2
- set/a wins="%wins% + 1"
- :play2
- if not "%n2%"=="%random% %% 10" goto play3
- set/a wins="%wins% + 1"
- :play3
- if not "%n3%"=="%random% %% 10" goto play4
- set/a wins="%wins% + 1"
- :play4
- if not "%n4%"=="%random% %% 10" goto play5
- set/a wins="%wins% + 1"
- :play5
- if not "%n5%"=="%random% %% 10" goto play6
- set/a wins="%wins% + 1"
- :play6
- if not "%n6%"=="%random% %% 10" goto draw
- set/a wins="%wins% + 1"
- :draw
- cls
- echo You got %wins% numbers right.
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement