Find out area of Triangle

/* formula is sqrt(s(s-a)*(s-b)*(s-c))*/



#include
#include

void main()
{
int a,b,c,p;
float s,area;
clrscr();
printf(“\n enter the 3 sides of a traingle:”);
scanf(“%d %d %d”,&a,&b,&c);
p=a+b+c;
s=p/2;
area=sqrt(s*(s-a)*(s-b)*(s-c));
printf(“\n area of traingle: %f”,area);
getch();

#vpsinghrajput

Author & Editor

Has laoreet percipitur ad. Vide interesset in mei, no his legimus verterem. Et nostrum imperdiet appellantur usu, mnesarchum referrentur id vim.

0 comments:

Post a Comment