网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

下面程序的运行结果是 ______ 。程序的功能是 _______ 。

Public 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(15,15)

End Sub


参考答案

更多 “ 下面程序的运行结果是 ______ 。程序的功能是 _______ 。Public Function myfun(m,n)Do while m>nDo while m>n:m=m-n:LoopDo While n>m:n=n-m:LoopLoopMyfun=mEnd FunctionPrivate Sub Command1_Click()Print myfun(15,15)End Sub ” 相关考题
考题 ( 8 )有以下程序#include stdio.hmain (){ int m,n;scanf ( " %d%d " ,m,n ) ;while ( m!=n ){ while ( mn ) m=m-n;while ( mn ) n=n-m;}printf ( " %d\n " ,m ) ;}程序运行后,当输入 14 63 回车 时,输出结果是 【 8 】 。

考题 下面程序的运行结果是()。includemain(){int y=10; do{y--;}while(--y); printf("%d\n" 下面程序的运行结果是( )。 #include<stdio.h> main() { int y=10; do{y--;}while(--y); printf("%d\n",y--); }A.-1B.1C.8D.0

考题 有以下程序inculde stdio.hmain(){ int m,n;scanF(“%d%d”,mn);While(m!=n){ While(mn)m=m-n;While(mn)n=n-m;}PrintF(“%d\n”,m);}程序运行后,当输入14 63<回车>时,输出结果是【 】。

考题 下面程序的运行结果是( )。 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); }

考题 分析下面程序,该程序的运行结果是()。includeclass cmm{public:static int m;cmm(){ 分析下面程序,该程序的运行结果是( )。 #include<iostream.h> class cmm { public: static int m; cmm() { m++; } cmm(int n) { m=n; } static void testm() { m++; } }; int cmm :: m=0; void main() { cmm A; cmm B(3); A.testm(); cram :: testm0; cout<<"m="<<B.m<<endl; }A.m=3B.m=4C.m=5D.m=6

考题 以下函数声明行书写不正确的是:A.function [m,n] = myfun(a)B.function [m] =myfun(a)C.function m= myfun (b,c)D.function m,n=myfun(b,c)

考题 以下定义函数声明正确的是:A.function [m] =myfun[a,b]B.function (m,n) =myfun(a)C.function m =myfun([a,b])D.function m =myfun

考题 【填空题】当运行以下程序时,从键盘输入1 2 3 4 5 -1<CR>,则下面程序的运行结果是 。 #include<stdio.h> main() {int k=0,n; do{scanf("%d",n);k+=n;}while(n!=-1); printf("k=%d n=%dn",k,n); }

考题 【填空题】当从键盘输入-1 0<CR>,则以下程序的运行结果是 。 #include<stdio.h> main() {int a,b,m,n; m=n=1; scanf("%d%d",a,b); do{if(a>0) {m=2*n;b++;} else {n=m+n;a+=2;b++;} }while(a==b); printf("m=%d n=%dn",m,n); }