Add the digits together. The sum of the digits of 23 is 5.
Add the digits together. The sum of the digits of 23 is 5.
the sum of individual digits of a given integer number
28
The no. is 35.
By the sum of its digits: 10. By each of its individual digits: 11.
int n; // we want to find the sum of digits of n int sum = 0; while(n != 0 ) { sum += n % 10; n /= 10; }
45
100000 2847239582
the sum of my digits is 6? answer=60
There are many shell programs that will find the sum of the square of individual digits of a number. A small example is: SD=3n=2, sum=2, and SD=2.
192
if the sum of the cubic value of each digit of a number is equal to the original number , then that particular number is an Armstrong number :-) Actually, Armstrong numbers are the sum of their own digits to the power of the number of digits.