/******************************************************************************
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,
C#, OCaml, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.
Code, Compile, Run and Debug online from anywhere in world.
*******************************************************************************/
using System;
class HelloWorld
{
static void Main()
{
int[] _array_ = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,13,14,42,42,};
string _buffer_ = "";
for (int i = 0; i < _array_.Length; ++i)
{
for (int j = 0; j < _array_.Length; ++j)
{
if (j == i)
continue;
if (_array_[j] == _array_[i])
{
_buffer_ += Convert.ToString(_array_[i]) + " ";
}
}
}
Console.WriteLine($"Повторяющиеся элементы массива '_array_':\n{_buffer_}");
string a = Convert.ToString(_array_[1..4]);
Console.WriteLine(a);
}
}