计算机二级VB编程题目含答案.docVIP

  • 6
  • 0
  • 约7.03千字
  • 约 12页
  • 2019-06-09 发布于浙江
  • 举报
Private Sub Command1_Click() Dim n As Integer, i As Integer, s As Double n = Val(Text1.Text) s = 0 For i = 1 To n s = s + i ^ 2 Next i Text2.Text = s End Sub Private Sub Command1_Click() 不得删除本行注释 Dim i As Integer Open App.Path \ yssj.txt For Input As #1 For i = 1 To 10 Input #1, a(i) Next i Close #1 End Sub Private Sub Command2_Click() 不得删除本行注释 Dim i As Integer Text1.Text = For i = 1 To 10 If a(i) Mod 3 = 2 Then Text1.Text = Text1.Text Str(a(i)) End If Next i End Sub Private Sub command1_Click() 不得删除本行注释 Dim a As Integer, b As Double, i As Integer, n As Integer n = Val(Text1.Text

文档评论(0)

1亿VIP精品文档

相关文档