VB这题怎么做啊,大佬 20
在窗体中添加一个名称为Command1的命令按钮,然后编写如下程序:PrivateSubCommand1_Click()Dimi,j,a,kAsIntegerFori=1...
在窗体中添加一个名称为Command1的命令按钮,然后编写如下程序:
Private Sub Command1_Click()
Dim i, j, a, k As Integer
For i = 1 To 4
a = 1
For j = 1 To 3
a = 2
For k = 1 To 2
a = a + 6
Next k
Next j
Next I
Print a
End Sub
程序运行后,单击命令按钮,则在窗体上显示的内容是 答案14 展开
Private Sub Command1_Click()
Dim i, j, a, k As Integer
For i = 1 To 4
a = 1
For j = 1 To 3
a = 2
For k = 1 To 2
a = a + 6
Next k
Next j
Next I
Print a
End Sub
程序运行后,单击命令按钮,则在窗体上显示的内容是 答案14 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询