## C++ Program to Find Sum of Digits of a Number

Below I have shared C++ program to find sum of digits of a number. For example given number is 238 then sum of digits will be 13. I am using very simple logic. If we find mod of any number by 10 then the result is the last digit of the number. For example 123%10 …