Find the Area of a Triangle Using coordinates

Objective – Given three vertices coordinates or (X, Y) coordinates, write a program to find the area of a triangle.

Example:

Approach:

Given the coordinates of the three vertices of any triangle are (X1, Y1), (X2, Y2) and (X3, Y3)

Java Code:



Output:

Area of Triangle: 7.0

__________________________________________________
Top Companies Interview Questions..-

Google Microsoft Amazon Facebook more..

If you find anything incorrect or you feel that there is any better approach to solve the above problem, please write comment.
__________________________________________________

  • lipsa patel

    The formula in the approach is wrong.

%d bloggers like this: