紧急求助,求1+2+3……+100的VB编程代码;

来源:百度知道 编辑:UC知道 时间:2024/05/29 09:15:11

Private Sub Form_Click()
Dim I as Integer,S as Integer
For i=1 to 100
S=S+I
Next
Print S
End Sub

这个的···
dim i as Integer
i <> 100
i=i+1


dim i as Integer
i =i+1
if i=100 then ```````

Print (1+100)*100/2
梯形面积还记得吗