Y
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
netfeed
5278 days ago
It does, both if-statements will fire
link
kaitnieks
5278 days ago
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).
link