Skip to content

Instantly share code, notes, and snippets.

@istro
istro / trianglemagic
Created June 14, 2012 03:01
Method to find the type of triangle by the length of three sides
# The problem:
# Write a triangle method that accepts three numbers as arguments. The method should return a print
# whether the three lengths form an equilateral, isosceles, or scalene triangle.
#
# We were just learning to define methods, and having learned if/else statements and touched on
# ternary statements, so we just wanted to make it as concise as we could with our limited knowledge :)
#