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  '窗口缺省
   Begin VB.CommandButton Command1 
      Caption         =   "Command1"
      Height          =   495
      Left            =   2520
      TabIndex        =   0
      Top             =   2640
      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 a!, b!, c!, s!, area!
  a = InputBox("输入三角形边a")
  b = InputBox("输入三角形边b")
  c = InputBox("输入三角形边c")
  If a = b And b = c Then
    Print "是等边三角形"
  ElseIf a = c Or b = c Or a = b Then
    Print "是等腰三角形"
  ElseIf a ^ 2 + b ^ 2 = c ^ 2 Or a ^ 2 + c ^ 2 = b ^ 2 Or c ^ 2 + b ^ 2 = a ^ 2 Then
    Print "是直角三角形"
  Else
    Print "是任意三角形"
  End If
  s = (a + b + c) / 2
  area = Sqr(s * (s - a) * (s - b) * (s - c))
  Print "面积="; area
End Sub
