News for hackers. Stuff that matters.
Re:FizzBuzz in ten languages by robnagler on Monday December 31, 2018 @11:45PM (#18798979)
More bikeshedding for the new year:

  #!/bin/bash
  for n in {1..100}; do
    f=
    ((n % 3)) || f=Fizz
    ((n % 5)) || f+=Buzz
    echo ${f:-$n}
  done

There are no comments on this comment yet.