2012/9/4 Edward QU <[email protected]>

> dear all
>
> a_array=[2,4,6,8,10]
> I want to sum the elements of the array:
> 2+4+6+8+10
> how to write the script?
>
> many thanks!
> best regards
> Edward
>
> --
> Posted via http://www.ruby-forum.com/.
>
> One suggestion. I'm beginner in Ruby too, and I find
http://ruby-doc.org/core-1.9.3/ very useful.

-- You received this message because you are subscribed to the Google Groups 
ruby-talk-google group. To post to this group, send email to 
[email protected]. To unsubscribe from this group, send email 
to [email protected]. For more options, visit this 
group at https://groups.google.com/d/forum/ruby-talk-google?hl=en

Reply via email to