11. Felling Included


#1

Pass this exercise but it prints nothing to the console… why?

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



#2

I ran it in irb and got an output of .5403…etc


#3

I’ve tried Mozilla also, still no result.
I’ll try other then.
thank you


#4

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