1.

Write a program to enter three sides of a triangle and check whether the triangle is possible or not. If possible then display whether an Equilateral, an Iso-Sceles or a scalene Triangle, otherwise display a message "Triangle is not possible".(pls don't use scanner class)

Answer»

A triangle is a valid triangle, If and only If, the sum of any two SIDES of a triangle is GREATER than the third side.

For Example, LET A, B and C are three sides of a triangle. Then, A + B > C, B + C > A and C + A > B.



Discussion

No Comment Found