• 2022-06-06
    下列程序段能且只能显示1!、2!、3!、4!的值的是( )。
    A: For i = 1 To 4 n = 1 For j = 1 To i n = n * j Next j MsgBox(n)Next i
    B: For i = 1 To 4 For j = 1 To i n = 1 n = n * j Next j MsgBox(n)Next i
    C: n = 1For i = 1 To 4 For j = 1 To 4 n = n * j MsgBox(n) Next jNext i
    D: n = 1j = 1Do While j <= 4 n = n * j j = j + 1LoopMsgBox(n)