C++ Program to find sum of digits of a number

C++ Program to find sum of digits of a number

Here you will get the source code of  C++ program to find sum of digits of a number.

Sum of digits is the sum of all digits of a positive number.

Program to find sum of digits of a number in C++

Output

Enter a number : 1234

Sum of digits of 1234 is 10

 

 

 

Check out our other C++ programming Examples

 

 

 

 

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top