Vb中提示缺少数组
PrivateSubForm_Click()DimdAsInteger,sAsIntegerClss=1d=7Print"第";d;"天的桃子数为:";sDoWhiled...
Private Sub Form_Click()
Dim d As Integer, s As Integer
Cls
s = 1
d = 7
Print "第"; d; "天的桃子数为:"; s
Do While d > 1
d = d - 1
s = s(s + 1) * 2
Print "第"; d; "天的桃子为:"; s
Loop
End Sub
哪里错了啊,求好心人答,感谢感谢 展开
Dim d As Integer, s As Integer
Cls
s = 1
d = 7
Print "第"; d; "天的桃子数为:"; s
Do While d > 1
d = d - 1
s = s(s + 1) * 2
Print "第"; d; "天的桃子为:"; s
Loop
End Sub
哪里错了啊,求好心人答,感谢感谢 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询