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
What is WEB 3.0? What are the features their in WEB3.0
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
Any real time example of O2C process from taking order till creating invoice.
Why did you ever become involved in QA/testing?
hi viewers, tell me,what is scripting and programming, define and difference...pls
how can i split string in a textbox in windows appication using C#.net
What is the use of sas software? Is sas and sap are different?
9.Difference between even and odd signals?explain with the diagram?
sample and simple coding where we get?
what is the purpose of checked Menu options
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
purpose of abstraction and interface
Which CRM is better to opt, Sebiel CRM or Salesforce CRM or sap CRM? which institute is best one in hyderabad
what is d main diff between the java and .net framework
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.