If the first side is equal separately to the second and separately to the third side, then the second side is equal to the third and all sides are equal to each other.
After entering the values, the program compares the length of the first side with the second and third sides. If both equalities are observed simultaneously, then the triangle is equilateral.
var a, b, c: real;
writeln (‘Enter the lengths of the sides of the triangle’);
readln (a, b, c);
if (a = b) and (a = c) then writeln (‘Equilateral triangle’)
else writeln (‘The triangle is not equilateral’)
One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.