Please answer my question.
Answers
Answer:
Newton Invented Gravitational Force.
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.