Private Sub Form_Click()
Print: Print: Print
For i = 1 To 9 For j = 1 To 30 - 3 * i Print ""; Next j For k = 1 To i Print k; Next k For k = i - 1 To 1 Step -1 Print k; Next k Print
Next i
End Sub
谁能告诉我错哪里了啊?
再问一下把""改成space(30-3*i)为什么不可以呢?
Private Sub Form_Click()
Print: Print: Print
For i = 1 To 9 For j = 1 To 30 - 3 * i print space (30-3*i); Next j For k = 1 To i Print k; Next k For k = i - 1 To 1 Step -1 Print k; Next k Print
Next i
End Sub
还有再问一下""是空字符串,它不是刚好为一个空格码?干嘛还要把""改写成" "呢?求解!谢谢啊!