using System;
public class Program
{
public int c = 0;
public int[] a;
public int[] b = new int[5];
public static void Main()
Program pg = new Program();
for(int i=0;i<5;i++)
pg.sample();
}
void sample()
c++;
if(c<5)
b[c-1] = c+10;
a = new int[c];
for (int i = 0; i < c; i++)
a[i] = b[i];
Console.WriteLine();
Console.Write(a[i]+" ");