列印結果
      *
    ***
  *****
*******

Private Sub Form_Activate()
    Dim i As Integer
    Dim j As Integer
    Dim row As Integer
    row = 4
    For i = 1 To row
        Print Spc(row - i);
        For j = 1 To i + i - 1
            Print "*";
        Next
        Print
    Next
End Sub

goodlucky 發表在 痞客邦 PIXNET 留言(0) 人氣()