Sunday, 22 August 2010

source code forAssigning values to 2d array

//source code forAssigning values to 2d array;
using System;
class TDArray
{ //source code for array
static void Main()
{
int[,] arr = new int[4,5];
int a = 5;
// source code forAssigning values to 2d array;
for(int i=0;i{
for(int j=0;j{
arr[i,j] = a;
a += 5;
}
}

No comments:

Post a Comment