设有以下函数过程:Function fun(a As Integer,b As Integer)Dim c As IntegerIf a<b Thenc=a:a=b:b=CEnd IFc=0Doc=c+aLoop Until c Mod b=0fun=cEnd Function若调用函数fun时的实际参数都是自然数,则函数返回的是( )。A.a、b的最大公约数B.a、b的最小公倍数C.a除以b的余数D.a除以b的商的整数部分

设有以下函数过程:

Function fun(a As Integer,b As Integer)

Dim c As Integer

If a<b Then

c=a:a=b:b=C

End IF

c=0

Do

c=c+a

Loop Until c Mod b=0

fun=c

End Function

若调用函数fun时的实际参数都是自然数,则函数返回的是( )。

A.a、b的最大公约数

B.a、b的最小公倍数

C.a除以b的余数

D.a除以b的商的整数部分


相关考题:

以下所列的各函数首部中,正确的是 ( )A.void play (var:Integer,var b:Integer)B.void play(int a,b)C.void play(int a,int b)D.Sub play(a as integer,b as integer)

以下所列的各函数首部中,正确的是A.void play(var :Integer,var b:Integer)B.void play(int a,b)C.void play(int a,int b)D.Sub play(a as integer,b as integer)

如果Add函数的调用代码为:func main() {var a Integer = 1var b Integer = 2var i interface{} = asum := i.(Integer).Add(b)fmt.Println(sum)}则Add函数定义正确的是() A.type Integer intfunc (a Integer) Add(b Integer) Integer { return a + b}B.type Integer intfunc (a Integer) Add(b *Integer) Integer { return a + *b}C.type Integer intfunc (a *Integer) Add(b Integer) Integer { return *a + b}D.type Integer intfunc (a *Integer) Add(b *Integer) Integer { return *a + *b}

以下所列的各函数首部中,正确的是______。A.void play(var a:Integer,var b:Integer)B.void play(int a,b)C.void play(int a,int b)D.Sub play(a as integer,b as integer)

以下所列的各函数首部中,正确的是______。A.void play(var:Integer,var b:Integer)B.void play(int a,b)C.void play(int a,int b)D.Sub play(a as integer,b as integer)

以下哪个函数声明是正确的?A.void play(int a, int b);B.void play(a:Integer, b:Integer);C.void play(int a, b) ;D.Sub play(a as integer, b as integer);

以下所列的各函数首部中,正确的是:()A.void play(var :Integer,var b:Integer)B.void play(int a,b)C.void play(int a,int b)D.Sub play(a as integer,b as integer)

以下所列的各函数首部中,正确的是A.void play(var :Integer,var b:Integer)B.void play(int a,b)C.void play(int a,int b)D.Sub play(a as integer,b as integer)

以下所列的各函数首部中,正确的是()。A.void play(int a,b)B.void play(var :Integer,var b:Integer)C.void play(int a,int b)D.Sub play(a as integer,b as integer)

以下所列的各函数首部中,正确的是________。A.void play(var a:Integer,var b:Integer)B.void play(int a,b)C.void play(int a,int b)D.void play(a as integer,b as integer)