vb代码金字塔数字的求解。
展开全部
Private Sub Command1_Click()
For i = 1 To 9
'**********FOUND**********
Print vbCrLf & Space(9 - i);
For j = 1 To i
Print Format(j, "0");
Next j
If i > 1 Then
'**********FOUND**********
For j = i - 1 To 1 Step -1
Print Format(j, "0");
Next j
End If
'**********FOUND**********
j = j + 1
Next i
'**********FOUND**********
End Sub
Private Sub Form_Load()
'**********FOUND**********
Command1.Caption = "?aê?"
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询