using System;
public class Program
{
public static void Main()
int[] intArray = new int[10];
for (int i = 0; i < 10; i++)
intArray[i] = i + 1; // i will be from 0 to 9
for (int i = 0; i < intArray.Length; i++)
Console.Write(intArray[i]); // This will print the value from 1 to 10 on the same line
}