Sum of all the digits of a Number

Problem Statement Write a program to find the sum of all the digits of a number. Code // Sum of all the digits of a Number…