[–] kaitnieks 14y ago ↗ I think c sample is wrong, doesn't handle the cases where number divides with both 3 and 5. [–] netfeed 14y ago ↗ It does, both if-statements will fire [–] kaitnieks 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).
[–] netfeed 14y ago ↗ It does, both if-statements will fire [–] kaitnieks 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).
[–] kaitnieks 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).
4 comments
[ 3.0 ms ] story [ 19.4 ms ] thread