Advertisements

Advertisements

Advertisements

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 program to find sum of digits in python, program to find sum of digits of a number in python, Python, python program to add digits of a number, python program to calcualte sum of digits of a given number, python program to find sum of digits of a number, python program to print sum of digits of a number, sum of digits, sum of digits in python, sum of digits of a number in python using while loop, sum of digits of given number, sum of digits of given number in python, write a python program to find sum of digits of a number
Leave a comment

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