// Implement the sumOfDigits() function (see below) so that the following
// code will work properly.
// Declare an integer for input and the sumOfDigits() function.
int n, sumOfDigits(int);
// Get a positive integer from the user.
do
{
cout << "Enter a positive number: ";
cin >> n;
}
while (n <= 0);
// Print out the sum of that number's digits.
cout << "The sum of " << n << "'s digits is " << sumOfDigits(n) << ".\n";
Basically they want you to write a function that will sum the digits of an int. For example, the number 1013 would have an answer of 1+0+1+3 or 5. What problems were you having writing that function?