pages

Thursday, May 14, 2020

Hypotenuse



C program to find hypotenuse without math.h


#include<stdio.h>
int main()
{
float p,b,h;
printf("enter the peroendicular and bsae : ");
scanf("%f %f",&p,&b);
h=sqrt{(p*p)+(b*b)};
printf("The hypotenuse is: %f",h);
return 0;
}

No comments:

Post a Comment