Sum of the Digits of a number Program: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main( string [] args) { int num, sum = 0; Console .WriteLine( "Enter a number :\n" ); num = Convert .ToInt32( Console .ReadLine()); if (num > 0) { for ( int temp = num; tem...
This Blog is for study and coding reference purpose.