public class DiamondTriangleProgram
public static void Main()
Console.WriteLine("Program for displaying pattern of *.");
Console.Write("Enter the maximum number of *: (Top to Middle line)");
int n = Convert.ToInt32(Console.ReadLine());
for (int i = 1; i <= n; i++)
for (int j = 1; j <= (n - i); j++)
for (int k = 1; k < i * 2; k++)
for (int i = n - 1; i >= 1; i--)
for (int j = 1; j <= (n - i); j++)
for (int k = 1; k < i * 2; k++)