for(int i = 0 ; i < size ; i++)
{
std::cin >> array[i];
}
Read array from console in C#
for(int i = 0 ; i < size ; i++)
{
arr[i] = Convert.ToInt32(Console.ReadLine());
}
Print array to console in C++
for(int i = 0 ; i < ${1:size} ; i++)
{
std::cout << array[i];
}
Print array to console in C#
foreach(var item in myArray)
{
Console.WriteLine(item.ToString());
}