C++ Program – Area of trangle

by Nideesh C on May 1, 2011 · 0 comments

in C++




/* Program to find area of triangle */ 

 #include<iostream.h>
 #include<conio.h>
 #include<math.h>
 void main()
 {
 clrscr();
 float a,b,c,p,ar;
 cout<<"Enter 3 sides :"<<endl;
 cin>>a>>b>>c;
 p=a+b+c;
 ar=sqrt(p*(p-a)*(p-b)*(p-c));
 cout<<"Area :"<<ar;
 getch();
 }  



Not Satisfied ? Just search & get the result

Related Posts Plugin for WordPress, Blogger...
Be Sociable, Share!

Related posts:

  1. C program to find the area of a circle, given the radius
  2. C Program to calculate area and circumference of the circle
  3. C program to compute the surface area and volume of a cube
  4. C program to find the area of a triangle, given three sides
  5. C++ program – Implementation of class

Leave a Comment

Previous post:

Next post: