InterviewSolution
Saved Bookmarks
| 1. |
JAVA programs: write a program to accept three angles of a triangle and check whether the triangle is possible or notand display message accordingly |
|
Answer» RO {public STATIC void main ( DOUBLE a,double b,double c) { double sum = double a+double b+double c; if(sum<=180) System.out.println(“The triangle is possible “); else System.out.println(“The triangle is not possible”) } } HOPE this HELPS you Happy Learning :D |
|