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
Write a shell program where you enter a number which corresponds to K.M. Find out the corresponding values in m, cm, inches, and feet. Hints:- 1 k.m= 1000 m 1 m= 100 cm 1 inches= 2.54 cm. 1 feet= 12 inches
What is BASIS
Can anyone send me NIC question papers alongwith answers on nidhi1485@yahoo.co.in? Urgently needed.. Thanks in advance
what is session state?
what is best way to create a Thread class & why?
In loading programs into memory, what is the difference between load-time dynamic linking and run-time dynamic linking?
will it allow to add same value in HashMap class.
What is diffrent between Method and and function in c#
is it possible to learn sap from book without any tutorial. if yes please mention the beginner,s book of sap and also make your valuable advice for self study of sap .
how can we implement locks in plsql?
What are the tasks performed by a Team Lead
Write a program to find factorial of a number using functions
Have you used callsymputx? what points need to be kept in mind when using it?
iam confused among testing ,.net and java. can anybody help me.
what are resources in case of Threads