using System.Collections.Generic;
using System.Threading.Tasks;
namespace starpatternall.cs
public static void stars(int count)
for (int t = 0; t < count; ++t)
public static void spaces(int count)
for (int t = 0; t < count; ++t)
public static void Main(string[] args)
Console.Write("Choose a option in b/w 1 to 7:");
a = int.Parse(Console.ReadLine());
Console.Write("Enter number of rows:");
var b = int.Parse(Console.ReadLine());
for (int row = 1; row <= b; ++row)
for (int col = 1; col <= row; ++col)
Console.Write("Enter number of rows:");
var c = int.Parse(Console.ReadLine());
for (int row = c; row >= 1; --row)
for (int col = 1; col <= row; ++col)
Console.Write("Enter number of rows:");
n = int.Parse(Console.ReadLine());
for (i = 1; i <= count; i++)
for (i = 1; i <= 2 * k - 1; i++)
for (k = 1; k <= n - 1; k++)
for (i = 1; i <= count; i++)
for (i = 1; i <= 2 * (n - k) - 1; i++)
Console.Write("Enter number of rows:");
int d = int.Parse(Console.ReadLine());
for (j = 1; j <= d - l; j++)
Console.Write("Enter number of rows:");
int e = int.Parse(Console.ReadLine());
for (int p = 0; p < e; ++p)
for (int q = 0; q <= p; ++q)
for (int q = 0; q <= p; ++q)
Console.Write("Enter no of rows:");
int f = int.Parse(Console.ReadLine());
for (int x = 0; x < f; x++)
for (int y = 0; y < f; y++)
for (int y = 0; y < f; y++)
else if (y >= 1 && y <= 5)
Console.Write("Enter no of rows:");
int s = int.Parse(Console.ReadLine());
for (int t = 0; t < s; ++t)