如何用一个for语句输出由星号组成的等腰三角形

2025-02-23 18:36:20
推荐回答(1个)
回答1:

Private Sub Command1_Click()
n = 5
For i = n To 1 Step -1
For j = 1 To 2 * i - 1
Print "*";
Next j
Print
Next i
End Sub