求使1+2+3+4+5+…+n

来源:学生作业帮助网 编辑:作业帮 时间:2024/07/05 17:03:31
求使1+2+3+4+5+…+n
x]N0 ǯ2M^ ~v/p4ZҰM q9.qnHCxcg˅?==`D#HD+ԚC˕xJޛYSm.a}"ӻ0~LwJЋfUKB9noeGa]!&_]b%}WՍ-vLy@Bp%3)r)27թQPZ1Er+b`)T(r*I͕d@5|bbb˒|H(cS`9f=JƙLAx$K.t5}X

求使1+2+3+4+5+…+n
求使1+2+3+4+5+…+n

求使1+2+3+4+5+…+n
n=1,s=0
while   s<100  
         s = s+n
         n = n+1
end while
n=n-2