namespace ConsoleApplication17
{
class Program
{
static void Main(string[] args)
{
Console.Write("请输入一个数");
int n = int.Parse(Console.ReadLine());
for (int i = 1; i<=n; i++)
{
for (int b = 1; b <=n-i; b++)
{
Console.Write(" ");
}
for (int j=1; j<=2*i-1; j++)
{
Console.Write("★");
}
Console.Write("
");
}
for (int p = 1; p < n; p++)
{
for (int o = 1;o <= p; o++)
{
Console.Write(" ");
}
for (int k = 1; k<=2*(n-p)-1; k++)
{
Console.Write("☆");
}
Console.Write("
");
}
for (int i = 1; i <=n; i++)
{
for (int t = 1; t < i; t++)
{
Console.Write(" ");
}
for (int f =n-i+1; f >=1 ; f--)
{
Console.Write("○");
}
Console.Write("
");
}
for(int i=n; i>=1; i--)
{
for(int t =1; t<=i; t++)
{
Console.Write("○");
}
Console.Write("
");
}
Console.ReadLine();
}
}
}