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

10y 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