Pyramid Using C#
This is a small blog where I will show how to create pyramid using C#
class Program
{
static void Main(string[] args)
{
for (int i = 0; i < 20; i++)
{
for (int k = i; k < 20; k++)
{
Console.Write(" ");
}
for (int j = 2 * i + 1; j > 0; j--)
{
Console.Write("*");
}
Console.WriteLine("");
}
Console.ReadLine();
}
}


Amogh NatuPosted May 2, 2013, 1:01 AM EDT
Good one..