int digsum (int n)
{
if (n<10) return n;
else return (n%10) + digsum (n/10);
}
Chat with our AI personalities
the sum of my digits is 6? answer=60
Add the digits together. The sum of the digits of 23 is 5.
4,777 km
31.
Since the sum of the digits is divisible by 3, the original number is also divisible by 3.Since the sum of the digits is divisible by 3, the original number is also divisible by 3.Since the sum of the digits is divisible by 3, the original number is also divisible by 3.Since the sum of the digits is divisible by 3, the original number is also divisible by 3.