+ 1
// Good Luck
int[] myArray = new int[5];
Console.WriteLine("Enter 5 elements: ");
for (int i=0; i<myArray.Length; i++) myArray[i] = Convert.ToInt32(Console.ReadLine());
Console.Write("The array contains the elements ");
Console.WriteLine(quot;[ {string.Join(", ", myArray)} ]");
https://code.sololearn.com/caZg0jXu08Tj
+ 1
Change from 5 to user defined array size.
https://code.sololearn.com/c7CfoBW858xk/?ref=app