I'm new to C++ and need basic help please
I'm new to C++ and one of the basic programming exercise questions I have is:
Write a program that prompts the user to input a four-digit positive integer. The program then outputs the digits of the number, one digit per line. For example, if the input is 3245, the output is:
That is the entire question. I need to be pointed in the right direction on how to get the program to print the different numbers from the integer separately. This is only the second chapter in the book, so the most advanced thing we have is probably a string....no arrays yet or anything like that.....I have gone over the chapter again and again, but I can't find out what I need to be doing. This doesn't have to be turned in until Monday, but I would like to understand what I'm doing and try it with some different programs that we wrote earlier, before Monday. I don't want everyone thinking as I saw from another posting that I am on here to have others do my work...I am really just very eager to learn.
Thanks in advance!!!