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
Need provab technical test questions
What do you understand by modular programming?
can we extend a class having only one parameterised constructor.Suggest the process to do it.
5.Call by value and Call by reference with program?
what is integration testing in real time applications?
What are two of your strengths that you will bring to our QA/testing team?
How does the type system works when there is interoperability between a COM and .Net, i mean what exactly happens there
Explain what is OOPS and its concepts?
1.what is the vesition managment.
what is the system development cycle
public static void main(String args[]) describe it
SAS question: I have 50 fils a1,a2,...,a50. the primary key is upc. then if i want to merge all 50 files, the code is as follows, data test; merge a1 ... a50; by upc; run; we know that writing all 50 files name is time consuming, is there any standard format of this code?
how to remove header and footer in jcl using sort utility
hai i am prasanna.I am MCA 2009 fresher.tell me about certifications.which certification helps me to improve my carrier and to get a technically oriented job ,which certification helps to get job faster.
Difference between debugging, running, executing of an application