(22 )下面是求最大公约数的函数的首部Function gcd (ByVal x As Integer, ByVal y As Integer
(22 )下面是求最大公约数的函数的首部
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 ))
请帮忙给出正确答案和分析,谢谢!