-
- @echo off
- setlocal enableDelayedExpansion
- set/a A=%random%%%5*9
- set/a B=(%random%%%3+1)*3
- echo A=%A% B=%B%
- set fuhao=+-*/
- :calc
- set/a RS=%A% !fuhao:~%n%,1! %B%
- echo A !fuhao:~%n%,1! B = !RS!
- set/a n+=1
- if not "!fuhao:~%n%,1!"=="" goto :calc
- pause>nul
- goto :eof
复制代码
[ 本帖最后由 sjzong 于 2009-4-16 22:48 编辑 ] |