The program asks you to determine length of the legs and according to your input it solves the length of hypotenuse.