Determine if the sides given equate to a triangle


#find if it is a valid triangle side1 = 5 side2 = 10 side3 = 25 #calculate sum of both sides sum12 = side1 + side2 if (sum12 > side3): #check if the sum is greater than the longest side print ("The sides given form a triangle.") else: #if it is not then it is not a triangle print ("The sides given do not form a triangle.")

Loading Please Wait...