I'm currently working on an example in the book C: How to Program that I can't seem to figure out on my own
I need to write a program that will let me input, say, a 5-digit number, and then print each digit of the number separated by 3 spaces. I could make it work if each digit was stored in it's own variable, but that would require the user to enter each digit individually, and it seems they want me to do it using a single number/variable.
All the answers I've found so far for this problem require either strings, arrays, or something of that nature, but I get the impression the book wants me to only use what was learned in chapter 2, so that means no arrays or strings, just basic printf, scanf, and maybe a solo if statement, so there must be a very simple way to do this that I'm overlooking?
Any help would be appreciated!