Created
August 8, 2019 05:46
-
-
Save thomasvaeth/590a81dbcd2cf5648941c59894b93a69 to your computer and use it in GitHub Desktop.
"If you knew how much work went into it, you would not call it genius." - Michelangelo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function validTriangle(a, b, c) { | |
if (a + b <= c || a + c <= b || b + c <= a) return false; | |
return true; | |
} | |
validTriangle(60, 80, 40); | |
validTriangle(5, 5, 50); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment