Question: C++ Programming (From book) Write a program that reads a four-digit integer, such as 1998, and then displays it, one digit per line. Your prompt

C++ Programming

 C++ Programming (From book) Write a program that reads a four-digit

(From book) Write a program that reads a four-digit integer, such as 1998, and then displays it, one digit per line. Your prompt should tell the user to enter a four-digit integer. You can then assume that the user follows directions. Hint: Use the division and remainder operators. Desired output: Enter a four-digit number: 1998 1 9 9 8

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!