1. 1.
    0
    class employee < person
    def initialize(fname, lname, position)
    super(fname, lname)
    @position = position
    end
    def to_s
    super + ", #@position"
    end
    end
    employee = employee.new("augustus","bondi","cfo")
    print employee

    def cubes(max)
    i=1
    while i < max
    yield i**3
    i += 1
    end
    end
    cubes(8) { |x| print x, ", "} => 1, 8, 27, 64, 125, 216, 343,
    sum = 0
    cubes(8) { |y| sum += y}
    print "nsum=",sum => sum=784
    product = 1
    cubes(8) { |z| product *= z}
    print "nproduct=",product => product=128024064000
    ···
  2. 2.
    0
    @7 yanlış kenk
    ···
  3. 3.
    0
    @10 şukunu verdim kanka helal
    ···
  4. 4.
    0
    @16 ruby kank
    ···