Simple Examples of Arrays in C#

Vilasgite080
Posted by Vilasgite080 under C# category on | Points: 40 | Views : 2026
//SIMPLE EXAMPLE OF ARRAYS IN C# 
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication3
{
class Program
{


static void Main(string[] args)
{
int j = 1;
//declare j by 1
for (int x = 0; x < 9; x++)
{
for (int i = x; i < 5; i++)
{
if (i < 4)
{
Console.Write(" ");
}
else
{
for (int jj = 0; jj < j; jj++)
{
Console.Write("*");
}
j = j + 2;
Console.WriteLine();
}
}
}
Console.ReadLine();
}
}
}

Comments or Responses

Posted by: T.saravanan on: 6/27/2011 Level:Silver | Status: [Member] [MVP] | Points: 10
Hi,

In your code,where are you use the array?
Kindly give an explanation about your code.
Posted by: Lakn2 on: 7/12/2011 Level:Starter | Status: [Member] | Points: 10
i did n't find any array in your code.

Login to post response