Computer Science, asked by sneha413639, 3 months ago

Please answer my question. ​

Attachments:

Answers

Answered by ayush1234222
1

Answer:

Newton Invented Gravitational Force.

Answered by udayagrawal49
1

Answer: The required java program is :-

import java.util.Scanner;

public class Main {

public static void main(String[] args) {

    Scanner scan = new Scanner(System.in);

    System.out.print("Enter first side of triangle : ");

    int s1 = scan.nextInt();

    System.out.print("Enter second side of triangle : ");

    int s2 = scan.nextInt();

    System.out.print("Enter third side of triangle : ");

    int s3 = scan.nextInt();

    scan.close();

    Boolean result = false;

    if((s1+s2)>s3) {

        if((s2+s3)>s1) {

            if((s3+s1)>s2) {

                if(s1==s2 && s2==s3) {

                    System.out.println("Triangle is an equilateral triangle.");

                }

                else if(s1==s2 || s2==s3 || s3==s1) {

                    System.out.println("Triangle is an isosceles triangle.");

                }

                else {

                    System.out.println("Triangle is a scalene triangle.");

                }

            }

            else {

                System.out.println("Triangle is not possible");

            }

        }

        else {

            System.out.println("Triangle is not possible");

        }

    }

    else {

        System.out.println("Triangle is not possible");

    }

}

}

You can find the same code in attached file.

Please mark it as Brainliest.

Attachments:
Similar questions