@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