- 1
Tell me about this question?
triple of numbers (a,b,c) is called a triangle triple if we can form a triangle of lengths a, b and c. In this question, you will be given three numbers. You have to output 1 if the three numbers can form a triangle. Otherwise, you have to output 0.
1 Antwort
+ 2
you can form a triangle from three lines of a given size only when the sum of the enghts of TWO SMALLER LINES is greater than the lenght of the longest line. simple, huh?