VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "猴子吃桃子问题"
   ClientHeight    =   1665
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   3315
   LinkTopic       =   "Form1"
   ScaleHeight     =   1665
   ScaleWidth      =   3315
   StartUpPosition =   3  '窗口缺省
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Click()
  Dim n%, i%
  x = 1             ' 第7天的桃子
  Print "第 7 天的桃子数为: 1只"
  For i = 6 To 1 Step -1
      x = (x + 1) * 2
  Print "第"; i; "天的桃子数为:"; x; "只"
  Next i
End Sub



