编写程序设计;S=1*2+2*3+…+N*(N+1),N由InputBox9()函数输入,结果可用

2025-04-13 02:17:21
推荐回答(1个)
回答(1):

for i=1 to n
s=s+i*(i+1)
next i
print s