I am a new programmer and this is a pretty difficult code for me as I dont have any resources. I need to write a program that reads three edges of a traingle and determines whether the input is valid. It is valid if the sum of any two edges is greater than the 3rd edge. Can someone kinda help me out, I dont know where to even get started. Some sample runs I found look like this
Enter three edges: 1 2.5 1
Can edges 1, 2.5 and 1 form a triangle? false
Enter three edges: 2.5 2 1
Can edges 2.5, 2, and 1 form a triangle? true
If the greater length side - the least length side < the remaining length side then true else false.
Try writing some code to reflect this logic....it may produce the desired result.