C# Console ile yıldız,desen,üçgen vb çalışmalar -11- İçi Boş Baklava Dilimi


 C# Console ile yıldız,desen,üçgen vb çalışmalar -13- İçi Boş Baklava Dilimi
 {
 static void Main([] args)
{
  int i, j;
  int space = 10;
  int MAX = space;
  for (i = ; i <= ; i++)
  {
    for (j = MAX; j  i; j--
    {
      Console.Write(" ")
    }
    Console.Write("*")
    for (j = 1; j < (i - 1) * 2; j++)
    {
      Console.Write(" ")
    }
    if (i == 1) Console.WriteLine();
    else
      Console.WriteLine("*")
  }
  for ( = space; i >= 1; i
  {
    for (j = MAX; j  i; j--
    {
      Console.Write(" ")
    }
    Console.Write("*")
    for (j = 1; j < (i - 1) * 2; j++)
    {
      Console.Write(" ")
    }
    if (i == 1) Console.WriteLine();
    else Console.WriteLine("*")
  }
  Console.ReadLine()
}       
 
 
 
<center> CIKTI</ center> 
 
  
         *
        * *
       *   *
      *     *
     *       *
    *         *
   *           *
  *             *
 *               *
*                 *
*                 *
 *               *
  *             *
   *           *
    *         *
     *       *
      *     *
       *   *
        * *
         *
 
}