You are on page 1of 1

LISP WORKS

Programa para multiplicar dos nmeros:


CL-USER 1> ( defun multi(a b)
( if (> b 0)
( + a (multi a (- b 1))) 0
)
)
MULTI
CL-USER 2> multi 6 8
CL-USER 3> 48

You might also like