vb如何连续输出数据到text,每次都会覆盖原来的数,我想全部x都输出到text2中
PrivateSubCommand1_Click()Dims!,i%,x!,n%,p!s=0n=Val(InputBox("数量"))Text1=nFori=1Tonx=...
Private Sub Command1_Click()
Dim s!, i%, x!, n%, p!
s = 0
n = Val(InputBox("数量"))
Text1 = n
For i = 1 To n
x = Val(InputBox("数据"))
Text2 = x
s = s + x
p = s / n
Next i
Text3 = p
End Sub 展开
Dim s!, i%, x!, n%, p!
s = 0
n = Val(InputBox("数量"))
Text1 = n
For i = 1 To n
x = Val(InputBox("数据"))
Text2 = x
s = s + x
p = s / n
Next i
Text3 = p
End Sub 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询