Write a program to enter three angles of a triangle and check whether a triangle is possible or not
Answers
Answered by
1
Answer:
take three inputs and perform following.......
Explanation:
if(a+b+c==180)
{
System.out.println("Possible");
}
else
{
System.out.println("Not possible");
}
Answered by
1
Answer:
I have used Scanner here..
If you dont want to use it just input the numbers in public statis void main(int a, int b,int c) and don't have to write all that..
Attachments:
Similar questions