Write a C program to find the area of a triangle, given three sides.
#include <stdio.h> #include <stdlib.h> #include <math.h> int main() { double s , a , b ,c , area ; printf("Please Enter Three Triangle Side Value :\n"); scanf("%lf%lf%lf",&a,&b,&c); s=(a+b+c)/2; area = sqrt ( s * (s-a) * (s-b) * (s-c)); printf("Area Of The Triangle = %lf",area); return 0; }
0 Comment to "Find The Area Of Triangle , Given Three Side."
Post a Comment