I cannot display the output window, can someone tell me what I am missing here? I am trying to display a #pyramid-shaped symbol .
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++)
{
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();
}
}
}
source
share