[单项选择题] 下面是求最大公约数的函数的首部 Function gcd(ByVal x As Integer, ByVal y As Integer) As Integer 若要输出8、12、16这3个数的最大公约数,下面正确的语句是
A.Print gcd(8,12),gcd(12,16),gcd(16,8)
B.Print gcd(8,12,16)
C.Print gcd(8),gcd(12),gcd(16)
D.Print gcd(8,gcd(12,16))
参考答案:
D问题解析:
解析无

![[单项选择题] 下面是求最大公约数的函数的首部 Function gcd(ByVal x As Integer, ByVal y As Integer) As Integer 若要输出8、12、1 [单项选择题] 下面是求最大公约数的函数的首部 Function gcd(ByVal x As Integer, ByVal y As Integer) As Integer 若要输出8、12、1](http://www.mshxw.com/aiimages/31/255738.png)
