we provide you the c downloads,c programing,c tutorials and much more at www.cplusplus-in.blogspot.com.Codes of c++ are also there for your help.This blog build your c programing style.
Sunday, 10 June 2012
code of area of the triangle by using sides
This is the source code of area of the triangle by using sides
#include<iostream.h>
#include<conio.h>
#include<math.h>
int main()
{
float a,b,c,S,Area;
cout<<"enter the value of first side:";
cin>>a;
cout<<"enter the value of second side:";
cin>>b;
cout<<"enter the value of third side:";
cin>>c;
S=(a+b+c)/2;
Area=sqrt(S*(S-a)*(S-b)*(S-c));
cout<<"this is the required area:"<<Area;
getch();
}
End
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment