用VB编写程序,打印由数字组成的如下所示金字塔图案

9 888 77777 6666666 555555555 44444444444 3333333333333 222222222222222 11111111111111111
2024-12-03 11:38:33
推荐回答(1个)
回答1:

Private Sub Command1_Click()
Dim str As String
For i = 1 To 9
For j = 1 To i * 2 - 1
str = str & 10 - i
Next j
Print str
str = ""
Next i
End Sub