Showing posts with label how to compute area of triangle. Show all posts
Showing posts with label how to compute area of triangle. Show all posts

Saturday, 8 April 2017

C Program to Find Area of a Triangle


Program :-

#include <stdio.h>
#include <math.h>
main()
{
   float x,y,z,s,area;
   printf("enter sides ");
   scanf("%f %f %f ",&x,&y,&z);
   s = (x + y + z) / 2 ;
   printf("area =  %f ", sqrt(s*(s - x)*(s - y)*(s-z)) );
}
 
Output :-

enter sides :
4  4  2
area = 3.87


Friday, 7 April 2017

Algorithm to Find Area of a Triangle


Step 1 : Start
Step 2 : Read Side1,Side2,Side3
Step 3 : S = (Side1 + Side2 + Side3) / 2
Step 3 : Area = Root  of ( S * (S - Side1) * (S - Side2) * (S - Side3))
Step 4 : Print Area
Step 5 : Stop

How to Invert an SVG image using CSS ?

You can invert your svg easily by using following css code svg { -webkit-filter: invert(100%); /* safari 6.0 - 9.0 */ filter...