A. -10 -7
B.10 8
C.1 3
D.0 4
[单选题]下列程序运行后的输出结果是F.unction Fun(n)X=n*nF.un=x-11E.nd FunctionPrivate Sub Command1_Click()F.or k=1 To 2y=Fun(k):Print yNextE.nd SubA.-10 -7B.10 8C.1 3D.0 4
[单选题]下列程序运行后的输出结果是F.unction Fun(n)x=n*nF.un=x-11E.nd FunctionPrivate Sub Command1_Click()F.or k=1 To 2y=Fun(k):Print yNextE.nd SubA.-10 -7B.10 8C.1 3D.0 4
[试题]以下程序的输出结果是 ( 17 ) 。int fun(int *x,int n){ if(n==0) return x[0];else return x[0]+fun(x+1,n-1);}main( ){ int a[]={1,2,3,4,5,6,7}; printf("%d/n",fun(a,3));}
[单选题]下列程序执行后,输出结果是( )。F.or n=3 To 1 Step-1x$=String$(n,"#")Print x$Next nA.1# 2# 3#B.)### ## #C.# ## ##D.3# 2# 1#
[主观题]以下程序运行后的输出结果是void fun(int x,int y){ x=x+y;y=x-y;x=x-y; printf("%d,%d,",x,y);}main(){ int x=2,y=3; fun(x,y); printf("%d,%d/n",x,y);}
[单选题]下列程序的运行结果是( )。Private Function myfun(m,n)D.o While m>nD.o While m>n:m=m-n:LoopD.o While n>m:n=n-m:LoopLoopmy fun=mE.nd FunctionPrivate Sub Command1_Click()Print myfun(9,8)E.nd SubA.2B.1C.4D.3
[单选题]下列程序的运行结果是( )。 Private Function myfun(m, n) Do While m > n Do While m>n:m=m-n:Loop Do while n>m:n=n-m:Loop Loop myfun=m End Function Private Sub Command1_Click() Print myfun(9, 8) End SubA.2B.1C.4D.3
[单选题]下列程序的运行结果是( )。 Private Function myfun(m,n) Do While m>n Do While m>n:m=m-n:Loop Do While n>m:n=n-m:Loop Loop myfun=m End Function Private Sub Command1_Click() Print myfun(9,8) End SubA.2B.1C.4D.3
[单选题]以下程序的输出结果是 long fun(int n) { long s; if(n==1‖n==2)s=2; else s=n-fun(n-1); return s;} main() {printf("%1d/n",fun(3));}A.1B.2C.3D.4
[单选题]下述程序的输出结果是( )。 long fun(int n) { long s; if(n==1||n==2) s=2; else s=n-fun(n-1); return s; } main() { printf("%1d/n",fun(3)); }A.1B.2C.3D.4