Splitting integers using Modulus and division
The project in my book:
Console Program.
Take any 5 digit integer (for the this example, 45339), split the characters and output them with a space between.
45339 out puts to:
4 5 3 3 9
I know data types, how to get the input and the like, but it wants me to use the modulus and division operators to "pick off" each digit and display it with spaces between each character. I know how to concac and get the spaces, but the math using the mod and div escapes me. I know i am over thinking this but I am burnt out. This is actually a project from 2 chapters ago in my book, but to do the basic encryption project we are working on now, I have to understand this one, (which he never assigned in the first place). Also, no loops. I can only use the info covered in the chapter which was pretty basic math, variables, and the if statement.

