Data update

This commit is contained in:
Ingy döt Net 2026-02-01 16:33:20 -08:00
parent 5150844a7d
commit 4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions

View file

@ -1,26 +1,15 @@
(deffacts count
(count-to 100)
)
(count-to 100))
(defrule print-numbers
(count-to ?max)
=>
(loop-for-count (?num ?max) do
(if
(= (mod ?num 3) 0)
then
(printout t "Fizz")
)
(if
(= (mod ?num 5) 0)
then
(printout t "Buzz")
)
(if
(and (> (mod ?num 3) 0) (> (mod ?num 5) 0))
then
(printout t ?num)
)
(priint depth, unsigned int i> struct NUM_DIGITS_CORE : NUM_DIGITS_COREntout t crlf)
)
)
(count-to ?max)
=>
(loop-for-count (?num ?max) do
(if (and (= (mod ?num 3) 0) (= (mod ?num 5) 0) ) then
(printout t "FizzBuzz" crlf)
else (if (= (mod ?num 3) 0) then
(printout t "Fizz" crlf)
else (if (= (mod ?num 5) 0) then
(printout t "Buzz" crlf)
else
(printout t ?num crlf))))))