发布网友 发布时间:2022-05-07 11:03
共1个回答
热心网友 时间:2023-10-27 21:39
Private Sub Command1_Click()
For i = 1 To 5
Print Tab(6 - i);
For j = 1 To i
Print "* ";
Next j
Print Spc(2 * (8 - i));
For j = 1 To 2 * i - 1
Print "*";
Next j
Next i
For i = 5 To 1 Step -1
Print Tab(6 - i);
For j = 1 To i
Print "* ";
Next j
Print Spc(2 * (8 - i));
For j = 1 To 2 * i - 1
Print "*";
Next j
Next i
End Sub
热心网友 时间:2023-10-27 21:39
Private Sub Command1_Click()
For i = 1 To 5
Print Tab(6 - i);
For j = 1 To i
Print "* ";
Next j
Print Spc(2 * (8 - i));
For j = 1 To 2 * i - 1
Print "*";
Next j
Next i
For i = 5 To 1 Step -1
Print Tab(6 - i);
For j = 1 To i
Print "* ";
Next j
Print Spc(2 * (8 - i));
For j = 1 To 2 * i - 1
Print "*";
Next j
Next i
End Sub