Pattern Series – Rhombus Star Pattern.

Menayer

October 20, 2025 // 1 MIN READ

Menayer's Patterns post

In this post, we’ll explore how to create star-shaped patterns using simple loops in C#.

These exercises may look basic, but they build the foundation for problem-solving and logic — skills every developer needs.

  Rhombus Star Pattern    
****
****
****
****

Let’s move to the code example

Create a Static Class named Rhombus StarPattern

public static void RhombusStarPattern(int n)
{
    for (int i = 0; i < n; i++)
    {
        Console.Write(new string(' ', i)); // print spaces
        for (int j = 0; j < n; j++)
        {
            Console.Write("* ");
        }
        Console.WriteLine();
    }
}

Then call the method in Program.cs

Protocol // Share Link
Main Contributor //

Menayer

Full-Stack .NET Developer with 5 years of experience building cross-platform solutions, currently specializing in specialized automation for the Container Terminal industry.

Join the Discussion

Your email address will not be published. Required fields are marked *