C# program to print the right half star pyramid pattern
Program.cs
Output
kodingwindow@kw:~/csharp$ dotnet run * ** *** **** ***** ****** ******* ******** ********* ********** kodingwindow@kw:~/csharp$
C# program to print the left half star pyramid pattern
Program.cs
Output
kodingwindow@kw:~/csharp$ dotnet run * ** *** **** ***** ****** ******* ******** ********* ********** kodingwindow@kw:~/csharp$
C# program to print the inverted right half star pyramid pattern
Program.cs
Output
kodingwindow@kw:~/csharp$ dotnet run ********** ********* ******** ******* ****** ***** **** *** ** * kodingwindow@kw:~/csharp$
C# program to print the inverted left half star pyramid pattern
Program.cs
Output
kodingwindow@kw:~/csharp$ dotnet run ********** ********* ******** ******* ****** ***** **** *** ** * kodingwindow@kw:~/csharp$
What Next?
C# program to print the star diamond pattern
C# program to print the prime numbers
C# program to find the factorial of a given number
Advertisement