有没有学过VB的高手,进来看段代码!
PrivateSubCommand1_Click()DimiAsInteger,jAsIntegerFori=1To9PrintTab(36);Forj=iTo1Step...
Private Sub Command1_Click()
Dim i As Integer, j As Integer
For i = 1 To 9
Print Tab(36);
For j = i To 1 Step -1
Print j;
Next j
Print
Next i
End Sub
Private Sub Command2_Click()
Dim i As Integer, j As Integer
For i = 9 To 1 Step -1
Print Tab(39 - 3 * i);
For j = 1 To i
Print j;
Next j
Print
Next i
End Sub
要详细的分析过程,谢谢!
老师说这是个很有趣的东西,有趣到哪里了?? 展开
Dim i As Integer, j As Integer
For i = 1 To 9
Print Tab(36);
For j = i To 1 Step -1
Print j;
Next j
Next i
End Sub
Private Sub Command2_Click()
Dim i As Integer, j As Integer
For i = 9 To 1 Step -1
Print Tab(39 - 3 * i);
For j = 1 To i
Print j;
Next j
Next i
End Sub
要详细的分析过程,谢谢!
老师说这是个很有趣的东西,有趣到哪里了?? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询