using System;
using System.Collections.Generic;
using System.Text;
namespace array
{
class Program
{
static void Main(string[] args)
{
int i = 0; // Counter for while loop
int j = 0;
string star = ""; // define for store start charachters
while (i < 30)
{
if (i == 0)
Console.WriteLine("#"); // if and this line for print a sharp for first line
else
{
for (j = 0; j < i; j++)
{
star += "*"; // This is start storages
}
Console.WriteLine("#"+star+"#");
}
star = "";
i++;
}
for (int endLine = 0; endLine <= i + 1; endLine++)
{
Console.Write("#");
}
Console.Read();
}
}
}
#
#*#
#**#
#***#
#****#
#*****#
#******#
#*******#
#********#
#*********#
#**********#
#***********#
#************#
#*************#
#**************#
#***************#
#****************#
#*****************#
#******************#
#*******************#
#********************#
#*********************#
#**********************#
#***********************#
#************************#
#*************************#
#**************************#
#***************************#
#****************************#
#*****************************#
################################
for (i=0 to n):
for (j=1 to i):
print "*"
print "\n"
for (i=n to 0):
for (j=1 to i):
print "*"
print " "
k = 2 * (n - i)
for (j=1 to k):
print "*"