Hacker News new | ask | show | jobs
by kaitnieks 5279 days ago
I think c sample is wrong, doesn't handle the cases where number divides with both 3 and 5.
1 comments

It does, both if-statements will fire
I'm not sure if the code was changed or my mistake. Anyway, now it will print out Fizz and then the number when number divides with 3 (but not with 5).