Update triangle.rb

changed