#include stdio.h
#include math.h

int main()
{
double a = 25.0, b = 16.0, c;

c = sqrt(a*a + b*b);

printf("Given a = %.1f and b = %.1f\n", a, b);
printf("The length of the hypotenuse c is %.1f\n", c);

return 0;
}

What is the output of the following program

Posted on by