## Sum of Digits of a Number in C++

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