Sum of Digits of a Number C++ Program
Overview C++ program to calculate the sum of digits of a number. The program prompts the user to enter the number. For example: Enter number: 7865 The output should be 7+ 8 + 6 + 5 = 26 C++ Program #include #include #include using namespace std; int main() { int sumOfDigits; int quotient; int digit; […]