Home Area of Triangle
mod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_counter
mod_vvisit_counterToday1
mod_vvisit_counterYesterday0
mod_vvisit_counterThis week1
mod_vvisit_counterLast week0
mod_vvisit_counterThis month1
mod_vvisit_counterLast month0
mod_vvisit_counterAll days4219

We have: 1 guests online
Your IP: : 38.107.179.232
 , 
Today: May 21, 2012

Tracker

visitors by country counter
flag counter

C Program To Find The Area Of A Triangle

#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
float a,b,c,s,A;
clrscr();
printf("Enter three sides of a triangle:\n");
scanf("%f%f%f",&a,&b,&c);
s=(a+b+c)/2;
A=sqrt(s*(s-a)*(s-b)*(s-c));
printf("Area of triangle=%f",A);
getch();
}

Sample Run:
Enter three sides of a triangle:
5
10
10
Area of triangle=24.206146