Basic可以吗?

function Addition(InputInt)
for i=1 to InputInt
next
Addition=i
End function

缺点,输入的整数越大,计算的时间越长。

请您先登陆,再发跟帖!