Given three sides of a triangle. Write the Program to
determine whether the triangle is :
1) Invalid
2) Right Angled
3) Isoscales
4) Equilateral
5) Not Special

An Isoscales right angled triangle should be taken as a
Right Angled Triangle

Answer Posted / sunil

if a, b and c are the three sides of a triangle, then a + b > c
if this is not satisfied, then its not a valid triangle.

To check for right angle, use Pythagoras theorem. Assume
that the longest side is the hypotenuse.

Issosless and Equilateral can be found by simply comparing
the sides.

Is This Answer Correct ?    65 Yes 31 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do i add a column dynamically in a table by using java application?

1557


How can we develop a multi-tier application in Java?

1474


10.Define filters,binary to hexadecimal,hexadecimal to decimal?

1522


What are the Short cut Keys of Tally ERP?

1779


What is the Difference between in memory database and physical database

2090






1. Consider the following input and generate the object code using single pass assembler. JOHN START 0 USING *,15 L 1,FIVE A 1,FOUR ST 1,TEMP FOUR DC F’4’ FIVE DC F’5’ TEMP DS ‘F END

2367


I have try to write a record in a TDQ from a fle.... what are the steps to do... can anybody plz come with a solution

2216


what is difference between object oriented programming structure and object oriented programming system?

1454


what are other resources are needed for this mantis?

1526


what is d main diff between the java and .net framework

1548


how to fin top two miximum values in sql? not 2nd both max value of 1st and 2nd both have to find out

1494


they asked me about srs (software requirement specifcation)? how can i get anydocumentation about srs & other documnts infomation like bdd, in testing? its urgent?

1460


how to get second highest salary from a employee table and how get a 5th highest salary from a employee table by using proc sql?

1902


Please describe an example where you used object orientation in one of your programs.

1496


what is the difference between an OS(operating system) and Framework?

1528