下列程序的输出结果是( )。 Dim a a=Array(1,2,3,4,5,6,7,8) i=0 For k=100 To 90 Step-2 s=a(i)^2 If a(i)>3 Then Exit For i=i+1 Next k Print k;i;sA.88 6 36B.88 1 2C.90 2 4D.94 3 16
下列程序的输出结果是( )。 Dim a a=Array(1,2,3,4,5,6,7,8) i=0 For k=100 To 90 Step-2 s=a(i)^2 If a(i)>3 Then Exit For i=i+1 Next k Print k;i;s
A.88 6 36
B.88 1 2
C.90 2 4
D.94 3 16
相关考题:
有以下程序#include stdio.hint b=2;int fun(int *k){ b=*k+b; return (b);}main(){ int a[10]={1,2,3,4,5,6,7,8},i;for(i=2;i4;i++) {b=fun(a[i])+b; printf("%d ",b);}printf("\n");}程序运行后的输出结果是A)10 12B)8 10C)10 28D)10 16
有下列程序:#includestdi0.hintb=2;intfun(int*k){b=*k+b;return(b);)voidmain( ){inta[10]={1,2,3,4,5,6,7,8},i;for(i=2;i4;i++){b=fun(&a[i])+b;printf(%d,b);}printf(\n);}程序运行后的输出结果是( )。A.1012B.810C.1028D.1016
有如下程序 gincludevoid main(){char ch[2] [5]={”6937","8254"),*p[2];int i,j,S 有如下程序 #ginclude<iostream.h> void main() {char ch[2] [5]={”6937","8254"),*p[2]; int i,j,S=0 for(i=0;i<2:i++)p[i]=ch[i]; for(i=0;i<2:i++) for(j=0;p[i] [j]>'\0';j+=2) s=10*s+p[i] [j]-'0': cout<<s;} 该程序的输出结果是( )。A.69825B.63825C.6385D.693825
下列程序的输出结果是 include void main( ) {int a[3],i,j,k=2; for(i= 下列程序的输出结果是 #include<iostream.h> void main( ) { int a[3],i,j,k=2; for(i=0;i<3;i++)a[i]=i; for(i=0;i<k;i++) for(j=0;j<k;j++) a[j]=a[i]; cout<<a[2];}A.2B.3C.1D.0
有下列程序: #includestdi0.h intb=2; intfun(int*k) {b=*k+b;return(b);) voidmain( ) {inta[10]={1,2,3,4,5,6,7,8},i; for(i=2;i4;i++){b=fun(&a[i])+b;printf ("%d",b);} printf("\n"); } 程序运行后的输出结果是( )。A.1012B.810C.1028D.1016
以下程序的输出结果是#include conio.h#include stdio.h#define M 100void fun(int m, int *a, int *n){ int i,j=0; for(i=1;i=m;i++) if(i%7==0||i%11==0) a[j++]=i; *n=j;}main(){ int aa[M],n,k; clrscr(); fun(100,aa,n); for(k=0;kn;k++) if((k+1)%20==0)printf("\n"); else printf("%d",aa[k]); printf("\n"); }
有下列程序: #includestdi0.h intb=2: intfun(int*k) {b=*k+b;return(b);} voidmain() {inta[1O]={1,2,3,4,5,6,7,8},i; for(i=2;i4;i++){b=fun(&a[i])+b;printf ("%d",b);} printf("\n"); } 程序运行后的输出结果是( )。A.1012B.810C.1028D.1016
下列程序的输出结果是( )。 Dima a=Array(1,2,3,4,5,6,7,8) i=0 ForK=100 To 90 Step-2 s=a(i)^2 If a(i)>3 Then Exit For i=i+1 Nextk Printk;a(i);sA.88 6 36B.88 1 2C.90 2 4D.94 4 16
有以下程序 main () { int aa[4][4]={{1,2,3,4} {5,6,7,8},{3,9.10,2},{4,2,9,6}}; int i. s=0 for(i=0;i<4;i++) s+=aa[i] [1]; printf ( "%d\n", s); } 程序运行后的输出结果是A.11B.19C.13D.20