Given three sides, check whether triangle is valid or not.
Examples:
Input : a = 7, b = 10, c = 5
Output : Valid
Input : a = 1 b = 10 c = 12
Output : Invalid
Recommended: Please try your approach on {IDE} first, before moving on to the solution.
Approach: A triangle is valid if sum of its two sides is greater than the third side. If three sides are a, b and c, then three conditions should be met.
Answers & Comments
Verified answer
Explanation:
all three angles =180degres one sides =90
Explanation:
Given three sides, check whether triangle is valid or not.
Examples:
Input : a = 7, b = 10, c = 5
Output : Valid
Input : a = 1 b = 10 c = 12
Output : Invalid
Recommended: Please try your approach on {IDE} first, before moving on to the solution.
Approach: A triangle is valid if sum of its two sides is greater than the third side. If three sides are a, b and c, then three conditions should be met.
1.a + b > c
2.a + c > b
3.b + c > a
make me as a brainlist
I LOVE FREE FIRE MAX TOO