No matter how I change my loop it either prints nothing or prints some kind of upside down triangle. I need it to print like this:
An explanation of the logic is appreciated but not necessary
static void Main(string[] args)
{
char[,] shape = new char[5, 5];
//Makes Stairs
//for (int i = 0; i < shape.GetLength(0); i++)
//{
// for (int j = 0; j <= i; j++)
// {
// shape[i, j] = '*';
// }
//}
//--------------------------------------------
//*****Makes Reverse Stair: Right now only prints upside down triangle
for (int i = 0; i < shape.GetLength(0); i++)
{
for (int j = 0; j < shape.GetLength(1); j++)
{
if (j >= i)
{
shape[i, j] = '*';
}
}
}
}
}