Skip to content

Instantly share code, notes, and snippets.

@agentfin
Created July 19, 2011 14:59
Show Gist options
  • Save agentfin/1092663 to your computer and use it in GitHub Desktop.
Save agentfin/1092663 to your computer and use it in GitHub Desktop.
Ruby Koans about_triangle_project
def triangle(a, b, c)
if (a == b ) & (b == c )
return :equilateral
else
if a==b || b==c || c==a
return :isosceles
else
return :scalene
end
end
end
class TriangleError < StandardError
end
@stringbot
Copy link

mathtastic!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment