Write a program that prompts for and reads in the two sidelengths of a right triangle (floating point numbers) and then callsa float-valued function, hypot1, that calculates and returns thelength of the hypotenuse of the triangle. The program then displaysthe two side lengths and the hypotenuse length.Note: The hypot1 functionreturns the hypotenuse length –it does not display it; the functionshould not contain any cout nor cin statements. Mathreview: Recall that for any right triangle with sidelengths a and b, and hypotenuse lengthc,a2+b2=c2.Here is an example of what output should look like from runningyour program (user input is shown inbold). Â
Enter the side lengths: 1.2 3.4
First side length = 1.2
Second side length = 3.4
Hypotenuse length = 3.60555