Actually, I didn't post the code, but you'll see I already covered using COND with three predicates in the second post of this thread:unixtechie wrote:Damm!Looks like cormullion beat me too it!!!Code: Select all
(cond ((= 0 (% i 15)) "fizzbuzz")
DrDave wrote:Thanks for posting that, Mr. C. I resorted to using COND, plus for ease of reading, defined three other functions that are predicates for the testing for being a factor of 15, 5, or 3. I accessed the numbers by using DOTIMES, forgeting that it starts at 0. So I guess I get points off for covering 0-99 instead of 1-100, LOL