55*4*v _ v v :1-:^ |:0"zzif">:#,_$ v >:3%!| >0"zzub">:#,_$^ >:5%!| v "buzz"0:. ^ |!%5: < >:#,_ $> ^
Isaac Scott
: .fizzbuzz ( n -- ) 0 pad c! dup 3 mod 0= if s" Fizz" pad place then dup 5 mod 0= if s" Buzz" pad +place then pad c@ if drop pad count type else . then ;
: zz ( n -- ) 1+ 1 do i .fizzbuzz cr loop ; 100 zz
Aaron Turner
what the fuck?
Jaxson Barnes
1..100|%{(($t="Fizz"*!($_%3)+"Buzz"*!($_%5)),$_)
David Perry
fizzBuzz :: Int -> String fizzBuzz 101 = [] fizzBuzz (x:xs) |mod x 15 == 0 = "FizzBuzz " ++ fizzBuzz xs |mod x 5 == 0 = "Buzz " ++ fizzBuzz xs |mod x 3 == 0 = "Fizz " ++ fizzBuzz xs |otherwise = show x ++ fizzBuzz xs
fizzBuzz 1
Jackson Bailey
(defun fizzbuzz (n &optional (i 1)) (cond ((equal i n) (fizzbuzz-aux n)) (t (print (fizzbuzz-aux i)) (fizzbuzz n (+ i 1)))))
(defun fizzbuzz-aux (n) (cond ((zerop (mod n 15)) "FizzBuzz") ((zerop (mod n 3)) "Fizz") ((zerop (mod n 5)) "Buzz") (t n)))
Parker Williams
My language is superior to yours: Start counting from one and up: For numbers divisible by both three and five print "FizzBuzz" otherwise if it's divisible by three print "Fizz" otherwise if it's divisble by five print "Buzz" otherwise print the current number.