作者: admin 发布时间: 2024-07-08 23:38
实验1:
s=0
for i=1 to 200
s=s+i^i
endfor
?s
或者也可以这样:
s=0
for i=1 to 200
y=1
for x=1 to i
y=y*i
endfor
s=s+y
endfor
?s
实验2:
input 请输入n的值: to n
s=0
for i= 1 to n
y=1
for x= 1 to i
y=y*x
endfor
s=s+y
endfor
?s