Skip to main content
Search
Search This Blog
Adsense
CFETCH
Share
Get link
Facebook
Twitter
Pinterest
Email
Other Apps
Labels
C Programs
July 10, 2013
A C Program to find out the area of triangle by the given equation A=sqrt(s(s-a)(s-b)(s-c)) a,b,c are the sides of triangle and 2s=a+b+c.
#include<stdio.h>
#include<conio.h>
void main()
{
float a,b,c,s,A;
clrscr();
printf("Enter value of a,b,c:");
scanf('%d %d %d"&a ,&b ,&c);
s=(a+b+c)/2;
A=sqrt(s*(s-a)*(s-b)*(s-c));
printf("Area of the triangle is:%f",A);
getch();
}
Comments
Popular Posts
January 17, 2014
C program to draw ellipse using Midpoint Ellipse Algorithm.
July 12, 2013
A C Program to ask the price of an item in decimal and separate rupees and paise.
Comments
Post a Comment