Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on FizzBuzz in ten languages. Parent comment
if ((0)); then echo 0=true; else echo 0=false; fi
if ((1)); then echo 1=true; else echo 1=false; fi
# output
0=false
1=true
To work as expected, the if statements should be rewritten as
if ((i % 3 == 0 && i % 5 == 0)); then echo FizzBuzz
and so on.
There are no comments on this comment yet.
if ((0)); then echo 0=true; else echo 0=false; fi
if ((1)); then echo 1=true; else echo 1=false; fi
# output
0=false
1=true
To work as expected, the if statements should be rewritten as
if ((i % 3 == 0 && i % 5 == 0)); then echo FizzBuzz
and so on.