求VB试题 解答 ,十万火急

2024-12-17 17:02:14
推荐回答(2个)
回答1:

一、6 5 4 3
二、70
三、
  W  
 WWW  
WWWWW  

五、
1.填空:
Private Sub Form_Click()
Dim n As Integer, p As Integer, s As Single, q As Integer, i As Integer
n = InputBox("请输入N的值:")
s = 0
p = -1
q = n
For i = 1 To n
p = -p
q = -q
s = s + p * i / q
next
Print s
……

End Sub

回答2:

第一题考你知识呢 6 5 4 3
第二题:会显示出错,因为除了控件获得焦点,才能取其text属性