66问答网
所有问题
用VB写设计程序代码,求:s=1+(1+2)+(1
如题所述
举报该问题
其他回答
第1个回答 2016-05-06
Private Sub Command1_Click()
Dim i As Integer, j As Single, n As Integer, m As Integer, l As Long
n = 100
m = 0
l=0
For i = 1 To n
m = 0
For j = 1 To i
m = m + j
Next
l = l + m
Next
Print l
End Sub
本回答被网友采纳
相似回答
大家正在搜
相关问题
用VB写设计程序代码,求:s=1+(1+2)+(1+2+3)...
Vb编程S=1+(1+2)+(1+2+3)+(1+2+3+4...
vb中编程序求:s=1/1+1/(1+2)+1/(1+2+3...
vb中编程序求:s=1/1+1/(1+2)+1/(1+2+3...
s=1+(1+2)+(1+2+3)+...+(1+2+3+....
用VB写设计程序代码,求:s=1+(1+2)+(1+2+3)...
VB:求S=1+(1+2)+(1+2+3)+…+(1+2+3...
用VB写设计程序代码,求:s=1 (1 2) (1 2 3)...