关于VBPrivate Sub Command1_Click() Dim i As Integer Dim j As Integer
PrivateSubCommand1_Click()DimiAsIntegerDimjAsIntegerDimkAsIntegerFori=1To4Forj=1To4-i...
Private Sub Command1_Click()
Dim i As Integer
Dim j As Integer
Dim k As Integer
For i = 1 To 4
For j = 1 To 4 - i
Print " ";
Next j
For k = 1 To 2 * i - 1
Print "*";
Next k
Print
Next i
End Sub
为什么print要在next i的前面? 展开
Dim i As Integer
Dim j As Integer
Dim k As Integer
For i = 1 To 4
For j = 1 To 4 - i
Print " ";
Next j
For k = 1 To 2 * i - 1
Print "*";
Next k
Next i
End Sub
为什么print要在next i的前面? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询