This program will help beginners to write their lab assignment. You can take the logic from below given code. There is 3 loops
First loop is for printing limit and second loop is for space , third loop is for printing star.
C# Program to print star triangle:
static void Main(string args)
int number = 12;
for (int i = 1; i <= number; i++)
for (int j = 1; j <= number - i; j++)
for (int k = 1; k <= i; k++)