Question: )[triangle.c]- (Chapter 3, no loops needed) . (Remember the rules of a valid triangle: sum of 2 sides is greater than the third side. If

)[triangle.c]- (Chapter 3, no loops needed). (Remember the rules of a valid triangle: sum of 2 sides is greater than the third side. If this is true for all three combinations then you have a valid triangle)

(Sides of a Triangle) Write a program that reads three nonzero integer values and determines and prints whether they could represent the sides of a triangle.

Sample Input:

Enter the three sides of your triangle: 3 4 5

Output:

3, 4, 5 make the sides of a valid triangle

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!