下面程序段的运行结果为________。DimsAsInteger,iAsIntegeri=1:s=1Doi=i+sLoopUntils>20Printi,s(1.0分)
举一反三
- 下面程序段的运行结果为____:inti=0,a=0,s=1;do{a=a+s*i;s=-s;i++;}while(i<10);cout<
- 执行下列程序段后,程序的运行结果为()。 s = 1 For i = 1 To 3 For j = 0 To i - 1 s = s + s * j Next j Print s; Next i
- 写出下面程序的运行结果: s=0; for i=1:10 s=s+i; end s
- 有如下程序段:s = 0For i = 1 To 10 s = s + iNext iPrint s与上述程序段输出结果相同的程序段为( )。 A: s = 0: i = 0 While i <= 10 i = i + 1 s = s + i Wend Print s B: s = 0: i = 1 While i < 10 i = i + 1 s = s + i Wend Print s C: s = 0: i = 1 Do s = s + i i = i + 1 Loop While i < 10 Print s D: s = 0: i = 1 Do s = s + i i = i + 1 Loop Until i > 10 Print s
- 下面程序段的运行结果是______。 i=1;s=1;a=0; do{a=a+s*i;s=-s;i++;}while(i A: 2 B: -2 C: 3 D: 0