public static void Main()
Console.Write("Display the sum of the series [ 9 + 99 + 999 + 9999 ...]:\n");
Console.Write("-----------------------------------------------------------");
Console.Write("Input the number or terms :");
n= Convert.ToInt32(Console.ReadLine());
Console.Write("\nThe sum of the saries = {0} \n",sum);