Talk to us! Your input helps us improve Ask.com for the millions of people who use us every day.

How would you rate Ask.com?

How can we make Ask.com better for you?

Please provide feedback before submitting your response.

Thanks for the feedback!

Web Results

en.wikipedia.org/wiki/Digit_sum

In mathematics, the

www.programmingsimplified.com/c/program/c-program-add-number-digits

C program to add

stackoverflow.com/questions/27096670/how-to-sum-digits-of-an-integer-in-java

public static void main(String[] args) { int num = 321; int

stackoverflow.com/questions/14939953/sum-the-digits-of-a-number-python

You can do it purely in integers, and it will be the most efficient: def sum_digits(n): s ... If I want to find the sum of the digits of a number, i.e. :.

www.geeksforgeeks.org/count-sum-of-digits-in-numbers-from-1-to-n/

Given a number x,

www.cquestions.com/2010/06/write-c-program-to-find-out-sum-of.html

2. C program for

www.sanfoundry.com/c-program-sum-all-digits-integer/

Nov 7, 2012

www.quora.com/How-do-you-find-the-sum-of-the-digits-of-2-1000

If you are using python. Its so trivial I won't even write it. If you are using C or C++,
first try to

www.quora.com/What-is-the-efficient-algorithm-to-find-the-sum-of-the-digits-of-a-numbers-factorial-number-can-be-upto-500-i-e-for-num-5-ans-3-as-5-120

One way of doing this is by actually computing the factorial. Obviously using primitive data ... What is the efficient algorithm to find the sum of the digits of a number's factorial (number can be upto 500) i.e for num=5, ans=3 (as 5! =120)?

mathforum.org/library/drmath/view/57919.html

How would one go about adding up all the

More Info

www.sjsu.edu

The

stackoverflow.com

The second function uses the modulo operator to extract the last

stackoverflow.com

Dec 9, 2013