The user enters three numbers and the program shows the window that what kind of triangle can be with the input sides: isosceles, rectangular, equilateral, or it does not exist at all.
Sub tri() Dim a, b, c As Integer If a = b Then MsgBox ("равнобедренный") End If If a And b Then MsgBox ("Прямоугольник") End If End Sub