Question: Write a program (C++) that prompts the user to input an integer and then outputs both the individual digits of the number and the sum

 Write a program (C++) that prompts the user to input an

Write a program (C++) that prompts the user to input an integer and then outputs both the individual digits of the number and the sum of the digits. Example: Input: 3456 Output: 3 4 5 6 Sum of digits is 18 Continue (Y/N)?: Y Input: -2345 Output: 2 3 4 5 Sum of digits is 14 Continue (Y/N)?: N Thank You

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!