基拉freedom 当前离线
上尉
@echo offset /p a=输入数字:set /p b=输入n次方:set d=aset /a c=%b%-1setlocal EnableDelayedExpansion:beginset /a d=!d!*%a%set /a c=!c!-1if "!c!"=="0" goto endgoto begin:endecho %a%的%b%次是!d!pauseCOPY
aaqqi1111 当前离线
三级士官
TOP
batman 当前离线
考官
荣誉版主
@echo offset /a d=1^<^<31,x="~d"echo cmd所能处理的最小数值为 %d%echo cmd所能处理的最大数值为 %x%pause>nulCOPY
oowgsoo 当前离线
二级士官
评分人数
m91opse 当前离线
列兵
@echo off set /p a=输入数字:set /p n=输入n次方: set ret=1for /L %%i in (1,1,%n%) do set /a ret*=%a% echo 输出结果:%ret% pauseCOPY