Skip to main content
added 45 characters in body
Source Link
Dennis
  • 210.6k
  • 41
  • 370
  • 825

Bash, 85 81 78 74 7272 71 bytes

for((;i++<100;)){
o=($i Fizz Buzz FizzBuzz)
echo ${o[!(i%3)+2*!(i%5)]}
}
for((;i++<100;j=i%3&2|i%5/4)){
o=($i Buzz Fizz FizzBuzz)
echo ${o[j]}
}

Thanks to @Neil for saving 4 bytes!
Thanks to @manatwork for saving 3 bytes!
Thanks to @primo for saving 2 bytes!

Try it online!Try it online!

Bash, 85 81 78 74 72 bytes

for((;i++<100;)){
o=($i Fizz Buzz FizzBuzz)
echo ${o[!(i%3)+2*!(i%5)]}
}

Thanks to @Neil for saving 4 bytes!
Thanks to @manatwork for saving 3 bytes!
Thanks to @primo for saving 2 bytes!

Try it online!

Bash, 85 81 78 74 72 71 bytes

for((;i++<100;j=i%3&2|i%5/4)){
o=($i Buzz Fizz FizzBuzz)
echo ${o[j]}
}

Thanks to @Neil for saving 4 bytes!
Thanks to @manatwork for saving 3 bytes!
Thanks to @primo for saving 2 bytes!

Try it online!

added 153 characters in body
Source Link
Dennis
  • 210.6k
  • 41
  • 370
  • 825

BashBash, 85 81 78 7474 72 bytes

for i in {1..100}
((;i++<100;)){
o=($i Fizz Buzz FizzBuzz)
echo ${o[!(i%3)+2*!(i%5)]}
}

Thanks to @Neil for saving 4 bytes!

  
Thanks to @manatwork for saving 3 bytes!
Thanks to @primo for saving 2 bytes!

Try it online!Try it online!

Bash, 85 81 78 74 bytes

for i in {1..100}
{
o=($i Fizz Buzz FizzBuzz)
echo ${o[!(i%3)+2*!(i%5)]}
}

Thanks to @Neil for saving 4 bytes!

 Thanks to @manatwork for saving 3 bytes!

Try it online!

Bash, 85 81 78 74 72 bytes

for((;i++<100;)){
o=($i Fizz Buzz FizzBuzz)
echo ${o[!(i%3)+2*!(i%5)]}
}

Thanks to @Neil for saving 4 bytes! 
Thanks to @manatwork for saving 3 bytes!
Thanks to @primo for saving 2 bytes!

Try it online!

deleted 2 characters in body
Source Link
Dennis
  • 210.6k
  • 41
  • 370
  • 825

Bash, 85 81 7878 74 bytes

for i in {1..100}
{
(o=(a=i%3,b=i%5)$i Fizz Buzz FizzBuzz)||i=
(echo ${o[!(a)i%3)||i=Fizz
(+2*!(b)i%5)||i+=Buzz
echo $i]}
}

Thanks to @Neil for saving 4 bytes!

Thanks to @manatwork for saving 3 bytes!

Try it online!Try it online!

Bash, 85 81 78 bytes

for i in {1..100}
{
((a=i%3,b=i%5))||i=
((a))||i=Fizz
((b))||i+=Buzz
echo $i
}

Thanks to @Neil for saving 4 bytes!

Thanks to @manatwork for saving 3 bytes!

Try it online!

Bash, 85 81 78 74 bytes

for i in {1..100}
{
o=($i Fizz Buzz FizzBuzz)
echo ${o[!(i%3)+2*!(i%5)]}
}

Thanks to @Neil for saving 4 bytes!

Thanks to @manatwork for saving 3 bytes!

Try it online!

added 241 characters in body
Source Link
Dennis
  • 210.6k
  • 41
  • 370
  • 825
Loading
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Source Link
Loading
added 101 characters in body
Source Link
Dennis
  • 210.6k
  • 41
  • 370
  • 825
Loading
Source Link
Dennis
  • 210.6k
  • 41
  • 370
  • 825
Loading