Write a program to enter a number and find the sum of each digits present in the number. Example : 5324 , 5+3+2+4 , Sum of the digits is = 14
Answers
Answered by
0
Explanation:
Python Program for Sum the digits of a given number
Given a number and the task is to find sum of digits of this number in Python.
Examples:
Input : n = 87
Output : 15
Input : n = 111
Output : 3
Similar questions