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
Can any one give an example (Source Code) on virtual function implemetation in Java?
9.Difference between even and odd signals?explain with the diagram?
what are the topics choosen for jam round for interviews
Delta 5 weight scale not connect with oracle application what i can do?
How to set fixed width in particular
qtp 9.2 14 days demo version was expired.I uninstalled how to reinstall this again
hoe to data grid use in sql server 2000?
What is the use of sas software? Is sas and sap are different?
what is web configuration file
Define Form modules, Class modules and Standard modules
Explain three modes in which files can be accessed from python program
< No Frames > tag is used for
hi, all this is shoba m.c.a . i have learned abap but no oppurtunities right now as fresher , right now i want to learn any course on demand any one pls suggest me good course and institute in hyderabad
if 2 is passed as an argument to the method,void GC.Collect then what would be the result?
what is web service in java? have u use before.