题库 高中信息

题干

以下程序,单击按钮 Command1后,其结果是(    )
Private Sub Command1_Click()

Dim a As Integer, b As Integer

a = 5: b = 3

Print work(a, b)

End Sub
Function work(x As Integer, y As Integer) As Integer

If (x < y) Then

work = 0

Exit Function

End If

If (y = 0) Then

work = 1

Exit Function

End If

work = work(x - 1, y - 1) + work(x - 1, y)

End Function
A.8B.9C.10D.11
上一题 下一题 0.99难度 选择题 更新时间:2019-06-15 10:29:58

答案(点此获取答案解析)