To complete this week's lab, you will be given 3 inputs which represent a possible triangle, and you need to determine if those three inputs would construct a right triangle. If the 3 sides do not form a right triangle, then you will need to determine if they form a triangle at all. You will not know which input of the three given is the measurement of the longest side, however. The formula to determine if 3 lengths form a right triangle is to see if the short side squared + the other short side squared equals the long side squared. Determining if 3 lengths form a triangle The formula to determine if 3 lengths form a triangle is to see if the sum of the two short sides is greater than the longest side.
To complete this week's lab, you will be given 3 inputs which represent a possible triangle, and you need to determine if those three inputs would construct a right triangle. If the 3 sides do not form a right triangle, then you will need to determine if they form a triangle at all. You will not know which input of the three given is the measurement of the longest side, however.
The formula to determine if 3 lengths form a right triangle is to see if the short side squared + the other short side squared equals the long side squared.
Determining if 3 lengths form a triangle
The formula to determine if 3 lengths form a triangle is to see if the sum of the two short sides is greater than the longest side.
Sample Execution
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images