Jump to content

Towers of Hanoi: Difference between revisions

m
(FALSE)
Line 130:
=={{header|Common Lisp}}==
 
<lang lisp> (defun move (n from to via)
(cond ((= n 1)
(format t "Move from ~A to ~A.~%" from to))
Line 136:
(move (- n 1) from via to)
(format t "Move from ~A to ~A.~%" from to)
(move (- n 1) via to from))))</lang>
 
=={{header|D}}==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.