O'Reilly logo
  • Frodo Baggins thinks this is interesting:

6.19 (Hypotenuse Calculations) Define a function hypotenuse that calculates the hypotenuse of a right triangle when the other two sides are given. The function should take two double arguments and return the hypotenuse as a double. Use this function in a program to determine the hypotenuse for each of the triangles shown below.


Cover of C++ How to Program, Ninth Edition