Hey everyone. Need some assistance again please. Here is what my assignment says word for word:
The sum of the lengths of any two sides of a triangle must be greater than the length of the third side. For example, the numbers 3, 4, & 5 can form a triangle because 3+4>5, 4+5>3, and 5+3>4. In contrast the numbers 1, 2, & 5 cannot form a triangle because 1+2<5. Thus if you are given any three integers, you can determine whether they could possibly form a triangle or not by applying this general principle.
For the instructions above...I haven't any idea what that lines mean exactly. Any thoughts?
Below is what I have so far.
I think I'm off to a good start. I think my variables are good and complete. I do need to work on the function though and the if statements. Which is a bit confusing for me. So please throw out any suggestions to the function that I may need to make. Please just let me know what you think in "text". I don't exactly want it to be done for me so that hopefully I'll pick it up a bit better if that makes since. Thanks for any suggestions.