Question: Ask the user to enter a 5 digit integer number. Write a C++ code to separate the digits. and print each digit individually. Write comments
Ask the user to enter a 5 digit integer number. Write a C++ code to separate the digits. and print each digit individually.
Write comments explaining what each line and what each command does.
If the user enters 18403
Output must be:
Digit 5 is 3
Digit 4 is 0
Digit 3 is 4
Digit 2 is 8
Digit 1 is 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
