Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
programmingfaster.com
#include<stdio.h>
#include<conio.h>
void main()
{
float a,b,c,s,area;
printf("enter three sides of triangle a,b,c:");
scanf("%f%f%f",&a,&b,&c);
s=(a+b+c)/2;
area=sqrt(s*(s-a)*(s-b)*(s-c));
printf("the area of triangle is :%.2f",area);
getch();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.