C# Program to Get a Number and Display the Sum of the Digits

This C# Program Gets a Number and Display the Sum of the Digits.The digit sum of a given integer is the sum of all its digits.

Here is source code of the C# Program to Get a Number and Display the Sum of the Digits . The C# program is successfully compiled and executed with Microsoft Visual Studio. The program output is also shown below.