VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   1290
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   5190
   LinkTopic       =   "Form1"
   ScaleHeight     =   1290
   ScaleWidth      =   5190
   StartUpPosition =   3  '´°¿ÚÈ±Ê¡
   Begin VB.CommandButton Command1 
      Caption         =   "Command1"
      Height          =   375
      Left            =   2040
      TabIndex        =   0
      Top             =   840
      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 s!, t!, i!, a%, n%
  a = Int(Rnd * 9 + 1)
  n = Int(Rnd * 6 + 5)
  t = 0: s = 0
  Print "a="; a, "n="; n
  For i = 1 To n
   t = t * 10 + a
   s = s + t
   Print t;
  Next i
  Print
  Print s
End Sub
