VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3195
   ScaleWidth      =   4680
   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 a(1 To 10) As Integer, i%, maxa%, mina%, avera!
 For i = 1 To 10
  a(i) = Int(Rnd * 100)
 Next i
 mina = a(1)
 maxa = a(1)
 avera = a(1)
 For i = 2 To 10
   If a(i) > maxa Then maxa = a(i)
   If a(i) < mina Then mina = a(i)
   avera = avera + a(i)
 Next i
 For i = 1 To 10
   Print a(i);
 Next i
 Print
 Print "max="; maxa, "min="; mina, "aver="; avera / 10
End Sub
 

 
 
 

