[二级VB试题天天练]VB考试试题11
分类: 计算机
时间: 2023-06-02 21:15:57
作者: 全国等级考试资料网
15.程序控制结构练习(5)
下列程序段运行后,k的值是多少?
k = 0
For i = 1 To 4
For j = 1 To 3
If j Mod 2 = 0 Then k = k + 1
k = k + 1
Next
Next
下列程序段运行后,k的值是多少?
k = 0
For i = 1 To 4
For j = 1 To 3
If j Mod 2 = 0 Then k = k + 1
k = k + 1
Next
Next