stuqx 当前离线
六级士官
@echo off set /a result=0 set /p n=输入N的值: for /l %%a in (1,1,%n%) do set /a result+=%%a echo result=%result% pause复制代码
TOP