11. Feeling included


#1



class Angle
    include Math
  
  attr_accessor :radians
  
  def initialize(radians)
    @radians = radians
  end
  
  def cosine
    cos(@radians)
  end
end

acute = Angle.new(1)
acute.cosine

What is wrong in this code?
plz help me...


#2

What errors are you getting?


#3

Oops, try again. Did you include Math on line 2?


#4

Your code looks perfectly fine to me. Try running it again, or in a different browser.


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.