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

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

0

B

10

C

30

D

40


参考解析

解析: 暂无解析

相关考题:

以下程序的功能是:将输入的正整数按逆序输出。例如:若输入 135 则输出 531 。请填空。#include stdio.hmain(){ int n,s;printf("Enter a number : "); scanf("%d",n);printf("Output: ");do{ s=n%10; printf("%d",s); 【 10 】 ; }while(n!=0);printf("\n");}

有以下程序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

( 6 ) 下面程序的功能是从键盘输入 1 大于 100 的整数 m ,计算并输出满足不等式1+22+32 +42 + …… .+n2m的最大的 n 。请填空Private Sub Command1__Click ()Dim s ,m,n AS Integerm=Val ( InputBox ( “ 请输入一个大于 100 的整数 ” ))n=_________s=0Do While smn=n+1s=s+n*nLoopPrint “ 满足不等式的最大 n 是_____End Sub

下列程序是死循环的是A.for(;;);B.int s=36; while(S)--S;C.int m=10; do { m- - }while(m0);D.int n=5; while(n1) { n- -; if(n0)break; }

下列程序是死循环的是 ( )A.for(;;)B.int s=36; while(s)=s;C.int m=10; do{m- -;}while(m>0);D.int n=5; while(n>1) { n- -; if(n<0)break; }

下面程序的功能是从键盘输入—个大于100的整数m,计算并输出满足不等式1+22+32+42+…+n2<m的最大的n。请填空。Private Sub Command1_Click()Dim s,m,n As Integerm=Val(InputBox("请输入一个大于100的整数"))n=【 】s=0Do While s<mn=n+1s=s+n*nLoopPrint "满足不等式的最大n是";【 】End Sub

有以下程序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); }

下列程序的运行结果是 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

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

有以下程序 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

算法的主要运算如下: While i<n do { s=0; While s<n do { s=s+1; } i=i+1; } 其中i的初值为0,s初值为0,“=”为赋值号。该算法的时间复杂度为()A.O(2n)B.O(n+log2n)C.O(nlog2n)D.O(n2)

有以下程序:includemain(){int s=0,a=1,n; scanf("%d",n); do {s+=1;a=a-2;} whi 有以下程序: #include <stdio.h> main() { int s=0,a=1,n; scanf("%d",n); do {s+=1;a=a-2;} while(a!=n); printf("%d\n",s); } 若要使程序的输出值为2,则应该从键盘给n输入的值是( )。A.-1B.-3C.-5D.0

有以下程序: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

有以下程序 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

以下是计算N!(N的阶乘)的FORTRAN程序: READ(*,*)N ______ DO 10 K=1,N 10 S=S*K END 为使程序完整,应在横线处放入( )。A.S=1B.S=NC.S=0D.什么都不放

以下不会构成无限循环的语句或语句组是()A、n=0;do{++n;}while(n=0)B、n=0;while(1){n++;}C、n=10;while(n);{n--;}D、for(n=0,i=1;;i++)n+=i

以下是表单的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