Option Explicit
Const a = 5, b = 3, c = 1
Private Sub Form_Activate()
Dim i As Integer, j As Integer, k As Integer, n As Integer
For i = 1 To 100
For j = 1 To 100
For k = 1 To 100
If i * a + j * b + k * c = 100 Then
n = n + 1
List1.AddItem " 公鸡:" & i & " 母鸡:" & j & " 小鸡:" & k
End If
Next: Next: Next
MsgBox "共有组合:" & n
End Sub