Tag Archives: sum of digits

Sum of digits of a number in Python

This gone be our second program in Python.We shall learn to write program to print the sum of digits of a given number.We have already seen the same program in C,C++,Java.Today we shall do the same in python. We all … Continue reading

Posted in Python | Tagged , , , , , , , , , , , , | Leave a comment

Sum of digits in JAVA

Here is a traditional problem…..Finding the sum of digits of given number.It is not a difficult one, just we need to find the logic in it.Logic is we need to get the digits of the given number using modulus operator.Now, … Continue reading

Posted in Java | Tagged , , , , , | 1 Comment