VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "九头鸟问题"
   ClientHeight    =   5850
   ClientLeft      =   120
   ClientTop       =   450
   ClientWidth     =   8415
   LinkTopic       =   "Form1"
   ScaleHeight     =   5850
   ScaleWidth      =   8415
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command1 
      Caption         =   "求解"
      Height          =   495
      Left            =   2760
      TabIndex        =   0
      Top             =   4680
      Width           =   2055
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
For niao = 1 To 12
For ji = 1 To 50
For tu = 1 To 25
tou = niao * 9 + ji + tu
jiao = niao * 2 + ji * 2 + tu * 4
If (tou = 100) And (jiao = 100) Then
Print "九头鸟有" & niao, "鸡有" & ji, "兔子有" & tu
End If
Next tu
Next ji
Next niao
End Sub
