<img src="https://pimg.1px.tw/yi007snoopy/1203168390.jpg" /><br /><!-- more -->程式碼:<br /><font face="Arial">Private Sub Command1_Click()<br />n = Val(InputBox("輸入大小"))<br />n = n - 1<br />For i = -n To n<br />For j = -n To n<br />If n - Abs(j) <= Abs(i) Then<br />Print "*";<br />Else<br />Print " ";<br />End If<br />Next j<br />Print<br />Next i<br />End Sub<br /></font>