# Make an algorithm with which you can determine whether a triangle with given side lengths a, b, c is equilateral.

September 21, 2021 | education

| 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.

program sum_n;

var a, b, c: real;

begin

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’)

end.

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.