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

    Dim i As Integer, j As Integer, st As String

    n = 5

    For i = 1 To 5

        st = “ ”

        If i < 4 Then

            For j = 1 To i

                st = st + “*”

            Next j

        Else

            For j = i To n

                st = st + “*”

            Next j

        End If

        List1.AddItem st

    Next i

    该程序段运行后,在列表框List1中显示的内容是(  )

    A . B . C . D .

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