The lengths of the legs of a right-angled triangle are given. Calculate the hypothesis length and area. Write a program and a flowchart.

var a, b, c, s: real;
begin
writeln (‘Enter the lengths of the legs’);
readln (a, b);
c: = sqrt (sqr (a) + sqr (b));
s: = (a * b) / 2;
writeln (‘Hypotenuse length =’, s);
writeln (‘Area of a triangle =’, s);
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.