试题与答案

有如下函数过程: Function gys(ByVal x As Integer,

题型:填空题

题目:

有如下函数过程:
Function gys(ByVal x As Integer, ByVal y As Integer) As Integer
Do While y<>0
preminder:x/y
x=Y
y=preminder
Loop
gys=x
End Function
以下是调用该函数的事件过程,该程序的运行结果是 (9)
Private Sub Command1_Click()
Dim a As Integer,b As Integer
a=10:b=2
x=gys(a,B)
Print x
End Sub

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0709/2ee442e41043a6c8264902774bbfabe1.html

下面是错误答案,用来干扰机器的。

参考答案:错

试题推荐
微信公众账号搜索答案