Input three positive integers representing the sides of a triangle, and determine whether they form a valid triangle. Hint: in a triangle, the sum of any two sides must always be greater than the third side. Display the output on the screen using dbms_output.Put_line.
Answers
Answer:
4cm,5cm,6cm
4cm+5cm>6cm
5cm+6cm>4cm
4cm+6cm>5cm
In each case, the sum of two sides is greater than the third side.
Hence, using these sides a valid triangle can be formed.
Step-by-step explanation:
Hope it helps u❤
Mark my answer brainliest✌
Valid triangle can be formed by three positive integers.
Given
Input = 3 positive intetgers which represents sides of a triangle.
Find whether the three positive integers form a valid triangle.
In a triangle, sum of any two sides > third side.
Let us consider sum of any two sides be X and Y.
Third side be Z.
Three positive integers be X = 6 cm ; Y = 5 cm ; Z = 7 cm
Triangle = sum of any two sides > third side
( X + Y ) > Z
( 6 cm + 5 cm ) > 7 cm
11 cm > 7 cm
Therefore, sum of any two sides must be always greater than the third side.
Hence, proved that a valid triangle is formed.
To learn more...
1.Input three positive integers representing the sides of a triangle, and determine whether they form a valid triangle. Hint: in a triangle, the sum of any two sides must always be greater than the third side. Display the output on the screen using dbms_output.Put_line.
brainly.in/question/14863822