Skip to content

Instantly share code, notes, and snippets.

Created August 18, 2017 04:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/02c201d1e1d6925f5b61c9f990131a0a to your computer and use it in GitHub Desktop.
Save anonymous/02c201d1e1d6925f5b61c9f990131a0a to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace starPyr
{
class Program
{
static void Main(string[] args)
{
for (int row = 5; row > 0; row--)
{
for (int space = 0; space < row - 1; space++);
{
Console.Write(" ");
if (space = row--)
{
Console.WriteLine("*");
}
};
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment