当前位置: 高中信息技术 / 单选题
  • 1. 有如下VB程序段:

    s = 0: i = 1

    Do While i <= 10

        If i Mod 3 = 0 Then a(i) = a(i) + 1 Else a(i) = i

        List1.AddItem Str(a(i))

        i = i + 1

    Loop

    i = 10

    Do While i >= 1

        If a(i) = 1 Then s = s + 1

        i = i - 1

    Loop

    该程序段运行后,变量s值是(  )

    A . 3 B . C . 5 D . 9

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