- REM 第一种
- @echo off
- for %%i in (10,9,8,7,6,5,4,3,2,1,0) do (
- cls&echo %%i
- for /l %%i in (1,1,200) do echo e>null
- )
- pause
- REM 第二种
- for /l %%i in (10,-1,0) do (
- cls&echo %%i
- for /l %%i in (1,1,200) do echo e>null
- )
- pause
-
- REM 第三种
- echo 10
- echo 9
- echo 8
- echo 7
- echo 6
- echo 5
- echo 4
- echo 3
- echo 2
- echo 1
- echo 0
- echo "谢谢"
-
- pause
-
- REM 第四种
- @echo off
- set a=10
- call :d
- :d
- if %a% LSS 0 goto :eof
- echo %a%
- set /a a=a-1
- goto d
复制代码
|