answersLogoWhite

0


Best Answer

void main() { int num,r,sum=0; clrscr(); printf("enter the number\n"); scanf("%d",&num); while(num!=0) { r=num%10; sum=sum+r; num=num/10 } printf("The sum of individual digit of given number is=%d",sum); getch() }

User Avatar

Wiki User

16y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Sum of individual digits of number?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Shell program to find the sum of square of individual digits of a number?

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.


What is the smallest two digit number that can be divided by its own digits?

By the sum of its digits: 10. By each of its individual digits: 11.


What is sum of individual digits?

The sum of the individual digit is itself


Write a Shell program to find the sum of cube of individual digits of a number?

no thanks


Algorithm for to find sum of individual digits of a positive integer?

enter the number whose digits are to be added num is the given value num=0! k=num%10 sum=sum=k k=num/10 num=k print the sum of the digits


The sum of the digits of the number is 6?

the sum of my digits is 6? answer=60


How do you find the sum of digits of each number?

Add the digits together. The sum of the digits of 23 is 5.


What is the sum of the values of the threes number 34353?

To find the sum of the digits in the number 34353, we can add each individual digit together. 3 + 4 + 3 + 5 + 3 = 18. Therefore, the sum of the values of the digits in the number 34353 is 18.


There is a number that is 5 times the sum of its digits What is this number?

The number is 45. The sum of its digits i.e. 4+5=9 Five times the sum of its digits i.e. 5 times 9 which is 45


A number that is equal to the sum of the digits of its cube?

8 is the same as the sum of the digits of its cube, 512.


What is the sum of the digits of the number 11?

1 + 1 = 2 The sum of the digits is therefore 2.


What does the sum of your digits?

The sum of your digits is the total number arrived at after adding two or more numbers.