*Just some basic programmes
, suggest me something to improve.
Subscribe for more such posts..
Dear Reader... I hope u are like my posts. If so then please don't forget to like , share and follow my blog for more such posts ,also feel free to write suggestions in the comment box given over here.
Thank you...
Search This Blog
Program to find the area of a triangle using Heron's formula in C.
#include <stdio.h>
#include <math.h>
void main(){
float area , a , b , c ,p ;
printf("enter sides : ");
scanf("%f %f %f" , &a ,&b , &c);
p = (a + b + c)/2 ;
area = sqrt(p*(p-a)*(p-b)*(p-c));
printf ("area : %f\n" , area);
}
Great
ReplyDelete