class Program
{
static void Main(string[] args)
{
int[] arr = new int[] { 10, 20, 30, 40, 50, 60 };
int[] b = A(arr);
for(int i = 0; i < b.Length; i++)
{
Console.WriteLine(b[i]);
}
}
/*static int[] Add5(int[] arr)
{ return arr.Select(x => x + 5).ToArray(); }*/
static int A(int[] arr)
{
int i;
int[] data = new int[arr.Length];
for (i = 0; i <arr .Length; i++)
{
data [i] = arr[i] + 5;
}
return data [i];
}
}