namespace ComplexUsesforArrays
public static void Main()
Console.Write("\n\nFind Sum Of All Elements Of Array:\n");
Console.Write("--------------------------------------------------------\n");
Console.Write("Input The Number Of Elements To Be Stored In The Array :");
n = Convert.ToInt32(Console.ReadLine());
Console.Write("Input {0} elements in the array :\n",n);
Console.Write("element - {0} : ",i);
a[i] = Convert.ToInt32(Console.ReadLine());
Console.Write("Sum of all elements stored in the array is : {0}\n\n", sum);