doh, sorry to all of you cos i'm not so polite as you want... :( c'est 
la vie;
some person aren't so polite but that don't means that they don't 
respect your work or help.

Thanks to all off you who tried to help me :)

This is what i was trying to do :

[code]
def r_string( n, v )
        n.times do |i|
                print "v[#{i}] = "
                v << readline.to_i
        end
end

def p_string( v )
        print "\nThe string is: " + v.join("  ")
end

def average_string( v )
        v.inject {|sum, x| sum + x} / v.size.to_f
end

print "no = "
no = readline.to_i
a = []
r_string( no, a )
p_string( a )

puts "\nString average is #{average_string(a)}"

readline
[/code]

Thanks again to those who helped me !!
Have a nice day !
(sorry for any speeling mistakes, english isn't my first language )

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