novioleo 当前离线
列兵
@echo off :a1 set /p n=input the last number! for /l %%a in (1,1,%n%) do set /a b=((%%a+1)*%%a)/2 echo %b% pause复制代码
TOP