也发一个 大于32 回头走 没有设置跳出错误 位数空 跳出读取总额- @echo off&setlocal EnableDelayedExpansion
- set str=2 0 50000 50 0 20 4 1000 0 10 30 0 500 0 100 50000 2 0 1000 50 0 2 0 10 500 30 0 2 70 0 1000 100
- for %%i in (%str%) do (
- set/a n+=1
- set _!n!=%%i
- )
- :lp
- set RMB=&set in=
- set /p put=号码:
- for /l %%i in (0 1 4) do (
- if not "!put:~%%i,1!"=="" (set i=!put:~%%i,1!)else goto end
- set/a in+=i
- if not defined _!in! set/a in=in%%32
- set/a RMB+=_!in!
- )
- :end
- echo 中奖金额: %RMB%
- goto lp
复制代码
|