VB的循环结构程序设计

采用For循环语句实现下列的图形
2024-12-26 04:16:34
推荐回答(1个)
回答1:

'是这意思?
Private Sub Form_Activate()
Dim i As Integer
For i = 1 To 8
If i = 1 Then
Print "※"
Else
Print "※" & Space(2 * (i - 2)) & "※"
End If
Next
Print String(i, "※")
End Sub