Write a program that determines whether a triangle is equilateral.

program zz1;
var a, b, c: integer; // set up variables
begin
write (‘enter the first side of the triangle’); // enter the first side from the keyboard
read (a);
write (‘enter the second side of the triangle’); // enter the second side from the keyboard
read (b);
write (‘enter the third side of the triangle’); // enter the third side from the keyboard
read (c);
if (a = b) and (b = c) and (c = a) // check if all sides are equal, then output one answer, otherwise another
then write (‘the triangle is equilateral’) else write (‘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.