Function GetArr(鸡腿 As Integer, 兔腿 As Integer, 鸡兔数 As Integer, 腿总数 As Integer) As Variant
Dim Arr(1) As Integer
Dim x As Integer '鸡
Dim y As Integer '兔
x = (腿总数 - 兔腿 * 鸡兔数) / (鸡腿 - 兔腿)
y = 鸡兔数 - x
Arr(0) = x
Arr(1) = y
GetArr = Arr
End Function
[attach]59235[/attach]