 
- 帖子
- 231
- 积分
- 2503
- 技术
- 12
- 捐助
- 0
- 注册时间
- 2008-10-12
|
求教:
@echo off&setlocal EnableDelayedExpansion
for /l %%k in (0,1,9) do ( set /a t%%k=%%k*%%k*%%k )
for /l %%i in (1,1,10000) do (
set num=%%i
set "n="
:loop
set /a a=!num!%%10
set /a num/=10
set /a n+=t!a!
if !num! neq 0 goto loop
if !n!==%%i echo %%i
)
pause
此段代码第二个for循环为何只能循环10次?? |
|