The legs of a right-angled triangle A and B are respectively equal to 125, 127.

The legs of a right-angled triangle A and B are respectively equal to 125, 127. Write a program that determines the area and perimeter of the triangle.

We can calculate the area of this triangle using only the information given in the problem. Namely, the length of the two legs.
To do this, you need to create two variables for each of the known legs, as well as for the hypotenuse, the value of which we will need in the future to find the perimeter of this triangle:
var A, B, C: integer;
Ploschad: = (A + B) / 2;
writeln (‘Square’, Ploschad);
A third party is needed for the perimeter:
С: = sqrt (sqr (A) + aqr (B));
Perimetr: = A + B + C;
writeln (‘Perimeter’, Perimetr);



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.