Question: Write a program to read the lengths of the two legs of a right triangle and to calculate and print the area of the triangle (one-half the product of legs) and the length of the hypotenuse (square root of the sum of the squares of the legs).