下列命令按钮事件过程执行后,输出结果是( )。 Form=1 To 1000Step2 a=10 Forn=1 To 20 Step2 a=a+2 Nextn Nextm Printa
A: 1200
B: 10000
C: 30
D: 20
A: 1200
B: 10000
C: 30
D: 20
举一反三
- 下列程序代码的运行结果为( )。Private Sub Command1_Click() For m = 1 To 10 Step 2 a = 10 For n = 1 To 20 Step 2 a = a + 2 Next n Next m Print aEnd Sub A: 60 B: 50 C: 30 D: 20
- 下列程序代码的运行结果为( )。 Private Sub Command1_Click() For m = 1 To 10 Step 2 a = 10 For n = 1 To 20 Step 2 a = a + 2 Next n Next m Print a End Sub
- 有如下程序: a=10 b=4 For j=1 to 20 Step –2 a=a+5 b=b+4 Next j Print a;b 程序运行后,输出的结果是
- 下列程序执行后,sum的结果是________。Dim sum As IntegerFor i = 1 To 4 Step 2 For j = 1 To i Step 2 sum += j NextNext A: 6 B: 9 C: 5 D: 7
- 下列正确的语句是( ) A: FOR X=1 TO 10 STEP -2 B: FOR X$=1 TO 9 STEP 3 C: FOR 1X=10 TO 100 STEP 10 D: FOR X1=10 TO 50