Write a function named triangle whose parameters are 3 real numbers(a,b,c). Specifying the lengths of the sides of the triangle. The function is return true if a,b & c can form a closed triangle. Otherwise it should return false.( HINT : Use as a test condition to form a closed triangle the sum of any pair of the numbers must be greater than the 3rd number )
No comments:
Post a Comment