answersLogoWhite

0


Best Answer

Void main ()

{

Int n, r, s = 0 ;

Printf (" Enter the number")

Scanf ("% d", & n);

While (n! = 0)

{

r = n%/10;

s = s+r;

n = n/10;

s = s+r;

n = n/10

}

Printf ("sun of the dijit of a no. is % d; s)

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program defind the sum of dijit of a number?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering
Related questions

What dijit is both even and prime?

None no prime number can be even because it could be divided by 2


Which dijit is in the ten place for eighty more than one hundred ninety?

it is 9


A times b equal 3500 if a and b are two-dijit multiples off ten what can they be?

3,000x5=15,000