Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
kaitnieks
· 14y ago · 0 comments
I think c sample is wrong, doesn't handle the cases where number divides with both 3 and 5.
Comments
[–]
netfeed
14y ago
It does, both if-statements will fire
[–]
kaitnieks
OP
14y 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).