2. Write a program that prompts the user to input an integer (not a Srig and chen outputs both the indvidual digits of the number and the sum of the digis. For example, the program should: output the...


2. Write a program that prompts the user to input an integer (not a Srig and chen outputs both the<br>indvidual digits of the number and the sum of the digis. For example, the program should: output<br>the individual digits of 3456 as 3456 and the sum as 18, output the individual digits of 2345526 as 2<br>345526and the sum as 27, and output the individual digits of -2345 as 2 3 4 5 and the sum as 14.<br>

Extracted text: 2. Write a program that prompts the user to input an integer (not a Srig and chen outputs both the indvidual digits of the number and the sum of the digis. For example, the program should: output the individual digits of 3456 as 3456 and the sum as 18, output the individual digits of 2345526 as 2 345526and the sum as 27, and output the individual digits of -2345 as 2 3 4 5 and the sum as 14.

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here