Plz Solve this Triangle problem........ QUESTION IN DESCRIPTION | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Plz Solve this Triangle problem........ QUESTION IN DESCRIPTION

Write a program in Java to input three sides of a triangle and print if a triangle with those sides is valid or not.Sum of any two sides in a valid triangle is always greater than the third side of triangle. For valid triangles also print if the triangle is a right angled(use Pythagoras theorem)

8th Oct 2019, 11:44 AM
HACK GAMERS
HACK GAMERS - avatar
14 Answers
8th Oct 2019, 2:34 PM
HACK GAMERS
HACK GAMERS - avatar
+ 4
MD SHAHID don't spam you answer in your question it's againest the community guideline of sololearn .plz read it.. https://www.sololearn.com/discuss/1316935/?ref=app
9th Oct 2019, 5:04 AM
🇮🇳Abhay Pratap Singh🇮🇳
🇮🇳Abhay Pratap Singh🇮🇳 - avatar
+ 3
MD SHAHID We can solve your problem but first you need to try by yourself if you want to learn coding. You need to build up your logic.
8th Oct 2019, 11:51 AM
A͢J
A͢J - avatar
+ 3
What you had tried share here. So we can check that what are you doing.
8th Oct 2019, 12:08 PM
A͢J
A͢J - avatar
+ 2
I can help you but are you sure you want to learn coding? And you are Indian man. You can do anything.
8th Oct 2019, 1:48 PM
A͢J
A͢J - avatar
+ 2
Yes it's right and working fine. Well done.
8th Oct 2019, 2:48 PM
A͢J
A͢J - avatar
+ 2
No other discussion here. You can talk through messages
8th Oct 2019, 2:59 PM
A͢J
A͢J - avatar
+ 1
Above Coding is right or not
8th Oct 2019, 2:35 PM
HACK GAMERS
HACK GAMERS - avatar
+ 1
Above code is right or not???
8th Oct 2019, 2:43 PM
HACK GAMERS
HACK GAMERS - avatar
+ 1
Thanks
8th Oct 2019, 2:54 PM
HACK GAMERS
HACK GAMERS - avatar
+ 1
You are also an Indian
8th Oct 2019, 2:54 PM
HACK GAMERS
HACK GAMERS - avatar
+ 1
Which part of India are you from?
8th Oct 2019, 2:56 PM
HACK GAMERS
HACK GAMERS - avatar
- 1
no formula for right angle triangle is wrong
10th Oct 2019, 10:02 AM
Pradeep
Pradeep - avatar
- 1
just use math.sqrt(math.pow(a,2)+math.pow(b,2))==c
10th Oct 2019, 10:03 AM
Pradeep
Pradeep - avatar