[Bat] multiplication table

 

@echo off & setlocal EnableDelayedExpansion

title 九九表

for /l %%a in (1,1,9) do (
    set temp=
    for /l %%i in (1,1,%%a) do (
        set /a count=%%i*%%a
        set temp=!temp! %%i*%%a=!count!
    )
    echo !temp!
)

pause

 

Guess you like

Origin www.cnblogs.com/xiaostudy/p/11770566.html