I'm not being able to display the output window, can anybody tell me what I am missing here? I'm trying to display the #
symbol in pyramid form.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace variable
{
class Program
{
static void Main()
{
for (int row = 0; row < 6; row++)
{
// Counting backwards here!
for (int spaces = 6 - row; spaces > 0; spaces--)
{
Console.Write(" ");
}
for (int column = 0; column < (2 * row + 1); column++)
{
Console.Write("#");
}
Console.WriteLine();
}
Console.Read();
}
}
}