打印菱形形状的图形vb
发布网友
发布时间:2022-05-13 04:31
我来回答
共1个回答
热心网友
时间:2023-08-07 03:30
Private Sub Command1_Click()
For i = 0 To 3
For j = 0 To 3 - i
Print " ";
Next j
For k = 0 To 2 * i + 1
Print "*";
Next k
Print
Next i
For i = 0 To 2
For j = 0 To i + 1
Print " ";
Next j
For k = 0 To 4 - 2 * i
Print "*";
Next k
Print
Next i
End Sub