sorry,i correct it
def mean(n)
s=0
m=0
self.each{|item|
if item>n then
puts item
s=s+item
m=m+1
else
end}
return s/(m.to_f)
end

-- 
Posted via http://www.ruby-forum.com/.