xxx3212 当前离线
六级士官
for /l %%a in (1,1,100) do ( set error=0 for /l %%b in (1,1,100) do ( if not %%a==%%b if !n%%a!==!n%%b! set error=1 if !error!==1 echo %%a和%%b重复! ) )复制代码
for /l %%a in (1,1,100) do ( for /l %%b in (1,1,100) do ( set error=0 if not %%a==%%b if !n%%a!==!n%%b! set error=1 if !error!==1 echo %%a和%%b重复! ) ) pause复制代码
TOP
youxi01 当前离线
荣誉版主
随风 当前离线
@echo off for /l %%a in (1,1,100) do ( for /l %%b in (1,1,100) do ( echo %%a和%%b重复! )) pause复制代码