题目内容

设有如下的程序段n = 0For i = 1 To 4For j = 1 To iFor k = j To 4n = n + 1Next kNext jNext iPrint n执行上面的程序段后,n的值为______。

查看答案
更多问题

运行如下程序后,输出结果为______。a = 0For j = 1 To 30 Step 2a = a + j mod 5Next jPrint a

如果依次输入30,45,55,70,75,下列程序段的执行结果为______。Dim c As Integer, k As Integer, d As Integerc = 70For k = 11 To 15x = InputBox("输入X的数值:")If x < c Thend = d + x: c = xElsed = d + cEnd IfNext kPrint d

运行如下程序后,输出结果为______。Dim i As Integer, y As IntegerFor i = 3 To 15 Step 2y = y + ii = i + 2Next iPrint i; y

运行如下程序后,输出结果为________。For m = 1 To 5a = 0For j = 1 To 5a = 1For k = 1 To 5a = a + 3Next kNext jNext mPrint a

答案查题题库