static int i = 0;
static string[] arr = new string[1000];
static void Main()
{
arr[0] = "#";
if (i < 999)
{
i = Index(i);
arr[i] = "#";
Main();
}
else
{
string value = String.Concat<string>(arr);
Console.WriteLine(value);
Console.ReadLine();
}
}
static int Index(int indx)
{
return indx + 1;
}
Не понял почему задача не выполнена?
Переменные не использую, все работает в среде разработки.
static void Main()
{
while (1>0)
{
Console.WriteLine(Console.ReadLine());
}
}