- @echo off
- setlocal enabledelayedexpansion
- :111
- set /p n=请输入一行数字的个数(25以内)
- set /p m=请输入重复的个数
- if not defined n goto 111
- if not defined m goto 111
- set /a b=101
- for /l %%a in (1 1 4) do (
- set num=%%a
- set /a a=!num!*!n!+100
- for /l %%i in (!b!,1,!a!) do (
- set str=%%i
- set "e=!e! !str:~1,2!"
- )
- set /a b=!a!+1
- for /l %%i in (1 1 !m!) do set/p=!e!<nul
- echo.
- set "e="
- )
- pause
复制代码
[ 本帖最后由 skuny 于 2010-12-25 15:19 编辑 ] |