answersLogoWhite

0

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

What else can I help you with?

Continue Learning about Engineering