There was a discussion on Discord about the complexities of dividing things by two and if you should use an integer or a floating-point type. A simple way to fix this issue would be to make everything divisible by two to sidestep the issue. The division is really a distraction here anyway. These challenges are about learning how to use switches and, to a small degree, getting a bit of experience with software that is evolving over time. So this... complication... is taking away from the true meaning of the challenge.
There was a discussion on Discord about the complexities of dividing things by two and if you should use an integer or a floating-point type. A simple way to fix this issue would be to make everything divisible by two to sidestep the issue. The division is really a distraction here anyway. These challenges are about learning how to use switches and, to a small degree, getting a bit of experience with software that is evolving over time. So this... complication... is taking away from the true meaning of the challenge.