Q:

Simple One Dimensional Array Concept using C#

0

This Program used to store the elements in the one dimensiona larray list

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

using System;

public class exam
{
public static void Main()
{
int[] a = new int[5];
int i;

a[0] = 2;
a[1] = 4;
a[2] = 6;
a[3] = 8;
a[4] = 10;

for(i=0;i<5;i++)
{
Console.Write("{0}\t",a[i]);
}
}
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now