编写visual basic 程序
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励20(财富值+成长值)
1个回答
展开全部
四个按钮控件
Private Sub Command1_Click()
Dim i As Long
For i = 1 To 5
Print String(i, "*")
Next
End Sub
Private Sub Command2_Click()
Dim i As Long
For i = 1 To 5
Print Space(5 - i) & String(i, "*")
Next
End Sub
Private Sub Command3_Click()
Dim i As Long
For i = 5 To 1 Step -1
Print String(i, "*")
Next
End Sub
Private Sub Command4_Click()
Dim i As Long
For i = 5 To 1 Step -1
Print Space(5 - i) & String(i, "*")
Next
End Sub
Private Sub Command1_Click()
Dim i As Long
For i = 1 To 5
Print String(i, "*")
Next
End Sub
Private Sub Command2_Click()
Dim i As Long
For i = 1 To 5
Print Space(5 - i) & String(i, "*")
Next
End Sub
Private Sub Command3_Click()
Dim i As Long
For i = 5 To 1 Step -1
Print String(i, "*")
Next
End Sub
Private Sub Command4_Click()
Dim i As Long
For i = 5 To 1 Step -1
Print Space(5 - i) & String(i, "*")
Next
End Sub
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询