using System;//namespace declaration
namespace ConApp
{
public class Program
public static void Main(string[] args)
int[] i = new int[3];//declaration of an array in the mem
Console.WriteLine("enter elements of an array");
int j;
for (j=0; j <= 2; j++)
i[j] = int.Parse(Console.ReadLine());
}
foreach (int k in i)
Console.WriteLine();
Console.WriteLine("your array elements are {0}", k);