打开vbtest 子目录下的 下的窗体文件form1.frm,修改其中的程序,使能输出如下图形:
*
**
***
****
*****
******
程序如下:
Private Sub Command1_Click()
For i = 1 to
For j = 1 to
Next j
Next i
End Sub
參考答案:Private Sub Command1_Click()
For i = 1 to 6
For j = 1 to i
Print "*"
Next j
Print chr(13) '换行
Next i
End Sub
没试,不过估计问题不大