one way is ]a=. ".,.":12345 1 2 3 4 5 +/a 15 project euler?
Птн, 29 Апр 2011, Daniel Roe писал(а): > > If we add up the digits of the number 12345 we get 1+2+3+4+5 = 15. > I want to be able to do math upon the individual digits. > How would I do that in J? > Dan > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm -- regards, ==================================================== GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
