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

What is WEB 3.0? What are the features their in WEB3.0

1576


hi this is uday i want prepare for nic exam if any one have previous question papers please send me or atlest guide me how to prepare my ID is udaykiran4u@in.com

1476


Any real time example of O2C process from taking order till creating invoice.

1789


Why did you ever become involved in QA/testing?

1608


hi viewers, tell me,what is scripting and programming, define and difference...pls

1505






how can i split string in a textbox in windows appication using C#.net

2212


What is the use of sas software? Is sas and sap are different?

1017


9.Difference between even and odd signals?explain with the diagram?

2964


sample and simple coding where we get?

1783


what is the purpose of checked Menu options

1986


5. Which of the following can you do with DB2 Express- C? Query databases with SQL Query databases with XML using XQuery and XPath Use SQL in Xquery and Xquery in SQL All of the above

2128


purpose of abstraction and interface

1528


Which CRM is better to opt, Sebiel CRM or Salesforce CRM or sap CRM? which institute is best one in hyderabad

1847


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

1548


Do not use more than 3 nested IF. Use Evaluate statement in case of more IF required. Please give a detail explantion besides readability and clarity for Evaluate stmt.

1485