中国~石油大学华东VB练习学习题10至15周程序题总括.docVIP

  • 5
  • 0
  • 约1.65万字
  • 约 27页
  • 2018-11-11 发布于安徽
  • 举报

中国~石油大学华东VB练习学习题10至15周程序题总括.doc

- 1、 (1) Private Sub Command1_Click() Text3.Text = 2 * (Val(Text1.Text) + Val(Text2.Text)) Text4.Text = Val(Text1.Text) * Val(Text2.Text) End Sub (2) Private Sub Command1_Click() Text3.Text = Str(2 * (Val(Text1.Text) + Val(Text2.Text))) Text4.Text = Str(Val(Text1.Text) * Val(Text2.Text)) End Sub (3) Private Sub Command1_Click() Dim c As Double, k As Double, z As Double, m As Double c = Val(Text1.Text) k = Val(Text2.Text) z = 2 * (c + k) m = c * k Text3.Text = Str(z) Text4.Text = Str(m) End Sub 2、 (1) Private Sub Command1_Click() Text2.Text = 2 * 3.1415926 * Val(Text1.Text) Text3.T

文档评论(0)

1亿VIP精品文档

相关文档