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
how do i add a column dynamically in a table by using java application?
How can we develop a multi-tier application in Java?
10.Define filters,binary to hexadecimal,hexadecimal to decimal?
What are the Short cut Keys of Tally ERP?
What is the Difference between in memory database and physical database
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
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
what is difference between object oriented programming structure and object oriented programming system?
what are other resources are needed for this mantis?
what is d main diff between the java and .net framework
how to fin top two miximum values in sql? not 2nd both max value of 1st and 2nd both have to find out
they asked me about srs (software requirement specifcation)? how can i get anydocumentation about srs & other documnts infomation like bdd, in testing? its urgent?
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?
Please describe an example where you used object orientation in one of your programs.
what is the difference between an OS(operating system) and Framework?