using System;
public class Program
{
//Q6.Write a program that first takes the size of the array as an input from the user. Create an array with the specified size.
//In another for loop add all the elements of the array. Print the sum of elements of the array
public static void Main()
int m;
int sum = 0;
int k = Int32.Parse(Console.ReadLine());
int[] ary = new int[k];
Console.WriteLine("Enter a number");
for (m = 0; m < k; m++)
ary[m] = Int32.Parse(Console.ReadLine());
}
sum = sum + ary[m];
Console.WriteLine(sum);