Computer Science, asked by mejuly4, 9 hours ago

Write a program to enter three angles of a triangle and check whether a traingle is possible or not. If possible then display whether an accute angled, right angled or an obtuse angled otherwise display "triangle is not possible".
(*Do Not Use Any Input Method*)​

Answers

Answered by utkarshsahu1804
4

import java.util.*;

public class Triangle

{

public static void main(String args[])

{

Scanner sc=new Scanner(System.in);

int a.2.a3;

System.out.println("Enter the three angles: ");

a1=sc.nextInt();

a2=sc.nextInt;

a3=sc.nextInt();

if(a1+a2+a3==180)

{

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

if(al<90 && a2<90 && a3<90)

System.out.println("Acute-angled triangle");

if(al=90 || a2=90 || a3==90)

System.out.println("Right-angledtriangle");

if(al>90 | a2>90 || a3>90)

System.out.println("Obtuse-angled triangle");

}

else

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

}

}

program written using java language

explanation:

Sample input:

Enter three angles 40, 90, 50

sample output:

Right Angled triangle

✨____________________________✨

By: Itz Nobody^_^

hope its help you aapka intro?

Answered by Anonymous
3

Answer:

Explanation:

I really don’t know I have doing , but one thing I have know that is I am totally fallen love with you.

Similar questions