当前位置: 高中信息技术 / 填空题
  • 1. (2015·杭州模拟) 下列VB程序运行时,单击Command1后,标签Label1中显示的内容是

    Private Sub Command1_Click()

    Dim s As Integer, j As Integer

    s = 0

    For j = 1 To 10

      If j Mod 2 <> 0 Then

        s = s + j

      End If

    Next j

    Label1.Caption = Str(s)

    End Sub

微信扫码预览、分享更方便