Private Sub Command1_Click()
Dim a, b, c, p, s As Integer
a = Val(Text1.Text)
b =
c = Val(Text3.Text)
p =(a + b + c) / 2
If a+b>c And a+c>b And b+c>a And a>0 And b>0 And c>0 Then
s =
Text4.Text =
Else
Text4.Text =“输入边长不能组成三角形!”
End If
End Sub