当前位置: 高中信息技术 / 单选题
  • 1. (2020·柯桥会考) 有如下程序段:

    Dim s(1 To 81) As Integer, i As Integer, j As Integer, c As Integer, temp As Integer

    c=0 : s(1) = 0

    For i = 1 To 9

        For j = 1 To i

          temp = s(j * i)

          s(j * i) = j * i

          If temp <> s(j * i) And s(j * i) Mod 9 = 0 Then c = c + 1

        Next j

    Next i

    该程序段运行后,变量C的值为(   )

    A . 9 B . 10 C . 11 D . 12

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