Basic可以嗎?

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

缺點,輸入的整數越大,計算的時間越長。

請您先登陸,再發跟帖!