Took me a hell of a lot longer than 10mins, but I did come up with a solution on my own(im a little slow, LOL.) I just playing around with the script and observing what was working and what was not, and by addressing each problem 1x1 I figured out what I was doing wrong…anyways, here is what I came up with…slightly dif than what you did:
int spaceCounter = 0;
for (int columns = 0; columns <= 11; columns++)
{
for (int space = 6; space >= spaceCounter;space--)
{
Console.Write(" ");
}
for (int rows = 0; rows < columns + 1; rows++)
{
if ((columns % 2) == 0)
{
columns++;
continue;
}
Console.Write( "*" );
}
Console.WriteLine();
spaceCounter++;
I made use of the Mod operator you showed us. This really helped me out with learning this…ty for that excercise. It's much easier to learn topics like this if we are presented with an end goal. (^8