+ 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
9th Mar 2022, 11:47 PM
SoloProg
SoloProg - avatar
+ 1
Change from 5 to user defined array size. https://code.sololearn.com/c7CfoBW858xk/?ref=app
10th Mar 2022, 2:43 AM
William Owens
William Owens - avatar