info@meritcampus.com    +91-85006-22255
...

Write a program to find if the given points form an acute triangle.

Input (Point, Point, Point) Output (boolean)
`[0, 0], [5, 0], [2.5, 4.33]` true
`[50, 0], [25, 43.3], [0, 0]` true
`[2, 3], [4, 4], [3, 5]` true
`[5, 5], [10, 10], [20, 20]` false
`[3, 18], [2, 14], [0, 0]` false

``` class IsAnAcuteTriangle {    public static void main(String s[])    {        Point firstPoint = new Point(0, 0);        Point secondPoint = new Point(5, 0);        Point thirdPoint = new Point(2.5, 4.33);        System.out.println("Given points form an acute triangle : " + isAnAcuteTriangle(firstPoint, secondPoint, thirdPoint));    } public static boolean isAnAcuteTriangle(Point firstPoint, Point secondPoint, Point thirdPoint) { //Write code here to find if the given points form an acute triangle } //If required write any additional methods here } class Point { double x; double y; Point(double x, double y) { this.x = x; this.y = y; } } ```
0
Wrong
Score more than 2 points