The division and modulus are not there to get the three spaces, but rather to obtain the individual digits from the number. If you had the integer 42339, how do you get the number in the hundred's position? You could convert it to a
string, get the third-from-last character, and convert that back to a number. But what if your number was 43? You'd have to write in the logic to check for out-of-bounds exceptions.
With division and modulus, you can get the number without any extra checking. Exactly how to use division and modulus is left as an exercise to the reader, as I suspect that that is the point of the exercise.
As an aside, if I were doing this problem, I'd convert the number to a string and then print out each character spaced with three spaces. Since the solution is non-mathematical, that would suffice. However, I suspect that the goal is see how division and modulus work, so follow that approach.