Visual Basic编程题目

Visual Basic编程题目,第1张

Private Sub Command1_Click()

Dim k As Integer, i As Integer

Dim s As Long, t As Long

s = 0: i = 2

Do While i <= 8

t = 1

k = 1

While k <巧汪= i t = t * k

k = k + 1

Wend

s = s + t

i = i + 2

Loop

Print s

End Sub

更多VB代码请关基唯注搏宽培http://hi.baidu.com/zgmg

Private Sub Command1_Click()

Label1.Caption = "多预习,问题在心中"

End Sub

Private Sub Command2_Click()

Label1.Caption = "认真听,知识升灶羡记脑里吵拍"

End Sub

Private Sub Command3_Click()

Label1.Caption = "多练习,实践出真知"

End Sub

Private Sub Form_Load()

Label1.FontSize = 20

Label1.Caption = "欢迎学习Visual Basic"

Command1.Caption = "上课前"

Command2.Caption = "上课时辩尺"

Command3.Caption = "上课后"

End Sub


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/12251734.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-22
下一篇 2023-05-22

发表评论

登录后才能评论

评论列表(0条)

保存