Skip to content

Instantly share code, notes, and snippets.

@tarynsauer
Created June 29, 2013 23:55
Show Gist options
  • Save tarynsauer/5893187 to your computer and use it in GitHub Desktop.
Save tarynsauer/5893187 to your computer and use it in GitHub Desktop.
Triangle side lengths
def valid_triangle?(a, b, c)
(a + b) > c && (b + c) > a && (a + c) > b
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment