answersLogoWhite

0

int digsum (int n)

{

if (n<10) return n;

else return (n%10) + digsum (n/10);

}

User Avatar

Wiki User

15y ago

Still curious? Ask our experts.

Chat with our AI personalities

MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine
JudyJudy
Simplicity is my specialty.
Chat with Judy
RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa

Add your answer:

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