Page 1 of 1

Help lisp

Posted: Mon May 25, 2009 4:54 pm
by Brown.
Make a function call in Lisp dividivel that recbe two arguments:
a dividend and a divisor x, and answer if T x is divisible by ye
NIL if x is not divisible by y.
pesquisar

Re: Help lisp

Posted: Tue May 26, 2009 12:34 pm
by Paul Donnelly
What do you have so far? Do you know in general how to determine whether a number is divisible by another?

Re: Help lisp

Posted: Wed May 27, 2009 6:09 pm
by nuntius
Go to the CLHS (http://www.lispworks.com/documentation/ ... /index.htm), click on the "symbol index", and find the MOD function. Or search for it at http://lispdoc.com.