You are on page 1of 1

CLIPS (V6.

24 06/15/06)
CLIPS> (defglobal ?*nt* = 4)
CLIPS> (defrule FACT
=> (bind ?t1 1)
(bind ?ct ?*nt*)
(while (> ?ct 0)
(bind ?t1 (* ?t1 ?ct))
(bind ?ct (- ?ct 1)))
(printout t ?t1)
(printout t crlf))

You might also like