单选题以下是表单的Activate事件的代码: s=0 for n=10 to 0 step -2 s=s+n endfor this.text1.value=s 这段代码执行后,文本框Text1的值为()A30B10C0D-2

单选题
以下是表单的Activate事件的代码: s=0 for n=10 to 0 step -2 s=s+n endfor this.text1.value=s 这段代码执行后,文本框Text1的值为()
A

30

B

10

C

0

D

-2


参考解析

解析: 暂无解析

相关考题:

有以下程序include stdio.hint fun(char s[]){ int n=0;while(*s='9'stdio.hint fun(char s[]){ int n=0;while(*s='9'*s='0') {n=10*n+*s-'0';s++;}return(n);}main(){ char s[10]={ '6', '1', '*', '4', '*', '9', '*', '0', '*'};printf("%d\n",fun(s));}程序运行的结果是A ) 9B ) 61490C ) 61D ) 5

1+ + + +…….n 最大的n。请填空Private Sub Command1__Click()Dim s ,m,n AS Integerm=Val(InputBox(“请输入一个大于100的整数”))n=_______s=0Do While s N=n+1S=s+n*nLoopPrint “满足不等式的最大n是_______End Sub

有以下程序#include stdio.hint fun(char s[]){ int n=0;while(*s=′9′*s=′0′) {n=10*n+*s-′0′;s++;}return(n);}main(){ char s[10]={′6′,′1′,′*′,′4′,′*′,′9′,′*′,′0′,′*′};printf("%d\n",fun(s));}程序的运行结果是A.9B.61490C.61D.5

该程序运行后屏幕显示的结果是( )。 S=0 FOR X=2 TO 10 STEP 2 S=S+X ENDFOR ?S RETURNA.10B.20C.30D.40

以下程序运行后的输出结果是【】。includemain(){int k=1,s=0; do{ if((k%2)!=0)continue; 以下程序运行后的输出结果是【 】。include<stdio.h>main(){ int k=1,s=0;do{if((k%2)!=0) continue;s+=k; k++;}while(k>10);printf("s+%d\n",s);}

有以下程序includeintfun(chars[]){intn=0;while(*s='0'){n=10*n+* 有以下程序 #include <stdio.h> int fun(char s[]) { int n=0; while(*s<='9'*s>='0') {n=10*n+*s-'0';s++;} return(n); } main() {char s[10]={'6','1','*','4','*','9','*','0','*'}; printf("%d\n",fun(s)); } 程序的运行结果是A.9B.61490C.61D.5

下面程序的运行结果是( )。 include main() {int a,s,n,m; a=2;s=0;n=1;m=1; while(m 下面程序的运行结果是( )。 include<stdio.h> main() {int a,s,n,m; a=2;s=0;n=1;m=1; while(m<=4){n=n*a;s=s+n;++m;} printf("s=%d",s); }

下列程序运行后屏幕显示的结果是( )。 S= FOR X=2 TO 10 STEP 2 S=S+X ENDFOR ?S RETURNA.10B.20C.30D.40

下列程序的运行结果是 SET TALK OFF STORE 0 TO S N=20 DO WHILE N>S S=S+N N=N-2 ENDDO ?S RETURNA.0B.2C.20D.18

有以下程序 #includestdio.h int fun(char s[]) {int n=0; while(*s=9&&*s=0){n=10*n+*s-o;s++;) return(n); } main {char s[10]={6,1,*,4,*,9,*, 0,*); printf("%d",fun(s)); } 程序运行的结果是( )。A.9B.61490C.61D.5

有以下程序includevoid main(){char s[]={"01aXy"};int i,n=0;for(i=0;s[i]!=0;i++)if 有以下程序 #include<stdio.h> void main() { char s[]={"01aXy"};int i,n=0; for(i=0;s[i]!=0;i++) if(s[i]<='a's[i]>='z')n++; printf("%d\n",n); } 程序运行后的输出结果是( )。A.0B.2C.3D.5

SETTALKOFF STORE 0 TO S N=20 DO WHILE N>S S=S+N N=N-2 ENDDO ?S RETURN 上列程序的运行结果是A.0B.2C.20D.18

【程序说明】 程序功能是用两种循环步长值来求1+2+3+…+50的值。【程序一】S=0FOR (5)(6)ENDFOR? SRETURN【程序二】S=0FOR (7)S=S+NENDFOR(8)RETURN(5)A.N=50 TO 1B.N=1 TO 50 STEP-1C.N=1 TO 50D.S=1 TO 50

有以下程序 include int fun(char s[ ]) { int n=0; while(*s='0 有以下程序#include <stdio.h>int fun(char s[ ]){ int n=0;while(*s<='9'*s>='0') {n=10*n+*s-'0';s++;}retum(n);}main( ){ char s[10]={'6','1','*','4','*','9','*','0','*'};printf("%d\n",fun(s));}程序的运行结果是A.9B.61490C.61D.5

有以下程序: #includestdio.h main( ) { int s=0.n; for(n=0;n3;n++) { switch(s) { case 0; case1:s+=1; case 2:s+=2;break; case 3:S+=3; default:s+=4; } printf("%d,"s); } } 程序运行后的输出结果是( )。A.1,2,4,B.1,3,6,C.3,10,14,D.3,6,10,

有以下程序:includeint fun(char s[]){ intn=0;while(*s='0'){n=10 有以下程序: #include <stdio.h> int fun(char s[]) { int n=0; while(*s<='9'*s>='0') {n=10*n+*s-'0';s++;} return(n); } main() { char s[10]={'6','1','*','4','*','9','*','0','*'}; printf("%d\n",fun(s)); } 程序的运行结果是( )。A.9B.61490C.61D.5

编写一个程序序列2,3/2,5/3,8/5,13/8,21/13——前N项之和。S=0【 】FOR I=l TO N【 】【 】ENDFOR?” S=”,S

有以下程序 includestdio.hintfun(chars[]){intn=0;while(*s=’9’stdio.hint fun(char s[]){int n=0;while(*s=’9’*s=’0’) { n=10*n+*s-‘0’;s++; }return(n);}main(){char s[10]={‘6’,’1’,’*’,’4’,’*’,’9’,’*’,’0’,’*’};printf(“%d\n”,fun(s));}程序的运行结果是( )。A.9B.61490C.61D.5

以下是表单的Activate事件的代码: s=0 n=5 do while n0 s=s+n n=n-1 enddo this.label1.caption=str(s,2) 这段代码执行后,标签Label1的标题为()A、0B、10C、15D、20

以下是表单的Activate事件的代码: s=1 n=1 do while n=4 s=s*n n=n+1 enddo this.label1.caption=str(s,2) 这段代码执行后,标签Label1的标题为()A、24B、10C、4D、1

以下是表单的Activate事件的代码: s=0 for n=10 to 0 step -5 s=s+n endfor this.text1.value=s 这段代码执行后,文本框Text1的值为()A、-5B、0C、10D、15

以下是表单的Activate事件的代码: s=0 for n=1 to 10 step 3 s=s+n endfor this.text1.value=s 这段代码执行后,文本框Text1的内容为()A、0B、3C、12D、22

以下是表单的Activate事件的代码: s=0 for n=5 to 0 step -1 s=s+n endfor this.text1.value=s 这段代码执行后,文本框Text1的值为()A、-1B、0C、5D、15

以下是表单的Activate事件的代码: s=0 n=0 do while n10 s=s+n   n=n+3 enddo this.label1.caption=str(s,2) 这段代码执行后,标签Label1的标题为()A、18B、10C、3D、0

单选题以下是表单的Activate事件的代码: s=0 n=5 do while n0 s=s+n n=n-1 enddo this.label1.caption=str(s,2) 这段代码执行后,标签Label1的标题为()A0B10C15D20

单选题以下是表单的Activate事件的代码: s=1 n=1 do while n=4 s=s*n n=n+1 enddo this.label1.caption=str(s,2) 这段代码执行后,标签Label1的标题为()A24B10C4D1

单选题有以下程序#include int fun(char s[]){ int n=0; while(*s='0') {  n=10*n+*s-'0';  s++; } return (n);}main(){ char s[10]={'6','1','*','4','*','9','*','0','*'}; printf("%d",fun(s));}程序的运行结果是(  )。A61490B61C9D5