Write a program that will find the sum of the digits of an integer.
Deliverables
- The user enters an integer
- The program finds the sum of the digits
- The program displays the sum with appropriate labels.
SAMPLE RUN (User entry is in RED)
User’s Entry
Enter an integer: 1239
Results
The sum of the digits is 15
Answer Preview
![Write a program that will find the sum of the digits of an integer.](https://gotit-pro.com/wp-content/uploads/2021/10/Project-8-output.png)
![](https://gotit-pro.com/wp-content/uploads/2021/05/icon-verified-1.png)
![](https://gotit-pro.com/wp-content/uploads/2021/05/info.png)
Student review: (1 ratings)
17 out of 1 people found this solution helpful.