public static void Main()
Console.WriteLine("Enter the array size");
int choice=Convert.ToInt32(Console.ReadLine());
int[] element= new int[choice];
Console.WriteLine("Enter the values:");
for(int i=0;i<choice;i++)
element[i]=Convert.ToInt32(Console.ReadLine());
Console.WriteLine("The array is:");
for(int j=0;j<choice;j++)
Console.WriteLine(element[j]);
Console.WriteLine("If you want to find the greatest element of array then type 1");
int s=Convert.ToInt32(Console.ReadLine());
Console.WriteLine("the largest number is:" +element[k]);