#include <stdio.h>
#include <stdlib.h>
#include <math.h>
float opt()
{
system("cls");
float a, b;
printf("Enter 2 numbers:-\n");
printf("a = ");
scanf("%f", &a);
printf("b = ");
scanf("%f", &b);
float sum;
sum = sqrt((a * a) + (b * b));
printf("Hypotenuse is:- %f", sum);
}
float main()
{
opt();
return 0;
}
//........Coded by JAIDEEP JAMBLE
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP