[单选题]

下面是求最大公约数的函数的首部Function gcd(ByVal x As Integer,ByVal y As Integer)As Integer若要输出8、12、16这3个数的最大公约数,下面正确的语句是

A.Print ged(8,12),gcd(12,16),gcd(16,8)

B.Print ged(8,12,16)

C.Print gcd(8),gcd(12),gcd(16)

D.Print gcd(8,gcd(12,16))

参考答案与解析:

相关试题

下面是求最大公约数的函数的首部Function gcd(ByVal x As I