Hi everyone.

I have a really stupid question here, but i'm a newbie so hear me out.

I want to add together all the digets in a number.
(for example, 2011 would be 4).
but i want to do it with a program.

I don't know how to split the individual digits up.

Thank you so much.

James.  :-)

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