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
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
This are a C program that accomplishes what you described include include ... View full answer
Get step-by-step solutions from verified subject matter experts
