Created
August 18, 2017 04:58
-
-
Save anonymous/02c201d1e1d6925f5b61c9f990131a0a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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