//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();
}
}
}