Sum of digits program in Python
Program:
Enter a number:654
Sum is 15
Enter a number:123
Sum is 6
Factorial of n is the product of all positive descending integers. Factorial of n is denoted by n!. For example:
Factorial of n is the product of all positive descending integers. Factorial of n is denoted by n!. For example: