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 'Windows Default End Attribute VB_Name = "Form1" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Private Sub Form_Load() Dim a As Integer, b As Integer, c As Integer Dim numLados As Integer For a = 1 To 3 For b = 1 To 3 For c = 1 To 3 If (a = b) Then If (b = c) Then numLados = 3 Else numLados = 2 End If Else If (b = c) Then numLados = 2 Else If (c = a) Then numLados = 2 Else numLados = 0 End If End If End If Select Case numLados Case 0 Debug.Print "Escaleno" & Str(a) & Str(b) & Str(c) Case 2 Debug.Print "Isoceles" & Str(a) & Str(b) & Str(c) Case 3 Debug.Print "Equilatero" & Str(a) & Str(b) & Str(c) End Select Next c Next b Next a End Sub