Check out example codes for "C# print array". It will help you in understanding the concepts better.

Code Example 1

string[] myArray = {"Dogs", "Cats", "Birds"};
foreach (string item in myArray)

Code Example 2

//array of numbers, it works with strings also
int numbers[3] = {1, 4, 5, 6}

/*declares int named 'number' and assigns it the value of an index
starting from index 0 to the end of the array, in this case, 3*/
foreach(int number in numbers){
  //prints the number

Learn ReactJs, React Native from