16
1
using System;
2
3
public class ArrayInCsharpProgram
4
{
5
public static void Main()
6
{
7
int[] arrInt= new int[] {1,2,3,4,5};
8
int i;
9
Console.WriteLine("Elements in the array are:");
10
for ( i = 0; i < 5; i++ )
11
{
12
Console.WriteLine(arrInt[i]);
13
}
14
15
}
16
}
Cached Result
Value for the number is: 20