Hacker News new | ask | show | jobs
by rum3 2620 days ago
Asking for it without using the modulus operator is a bit evil haha.

I like this exercise and I sent it to a friend who has a few years of programming experience but is still learning heavily.

The first solution lacked the number being printed but everything else was right. Second solution had the number, but he missed the FizzBall when the number was divisible by both three and five. The third solution lacked the Fizz when it was divisible by three. Finally his fourth solution was correct.