Question
Prompt the user for the length of three line segments as integers. If the three lines could form a triangle, print the integers and a
Prompt the user for the length of three line segments as integers. If the three lines could form a triangle, print the integers and a message indicating they form a triangle. Recall that the sum of the lengths of any two sides must be greater than the length of the third side to form a triangle. For example, 20, 5, and 10 cannot be the lengths of the sides of a triangle because 5 + 10 is not greater than 20. For line segments that do not form a triangle, print the integers and an appropriate message indicating no trianlge can be created. Use a state-controlled loop to allow users to enter as many different combinations as they want. This should be in C#
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started