RosettaCodeData/Task/Long-multiplication/PicoLisp/long-multiplication.l
2015-02-20 00:35:01 -05:00

5 lines
170 B
Text

(de multi (A B)
(setq A (format A) B (reverse (chop B)))
(let Result 0
(for (I . X) B
(setq Result (+ Result (* (format X) A (** 10 (dec I)))))) ) )