VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "种树"
   ClientHeight    =   3720
   ClientLeft      =   120
   ClientTop       =   450
   ClientWidth     =   4845
   LinkTopic       =   "Form1"
   ScaleHeight     =   3720
   ScaleWidth      =   4845
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command1 
      Caption         =   "计算"
      Height          =   615
      Left            =   2880
      TabIndex        =   0
      Top             =   2520
      Width           =   1455
   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()
Dim age As Integer
Dim tree As Integer
age = 13
tree = 3
Do
age = age + 1
tree = tree + (age - 10)
Loop Until tree >= 1000
Print "到" & age & "岁时种到" & tree & "棵生日树！"
End Sub
