Using the Hypotenuse Function
#include <stdio.h>
main ( )
{
double a = 5.0, b = 6.0, c;
c = Hypotenuse (a, b);
printf (“A right triangle with sides %f and %f “
“has hypotenuse of %f\n”, a, b, c);
}
Previous slide
Next slide
Back to first slide
View graphic version