Star Printing : pattern 2 (Left Side Opposite Triangle) in C Programming

Just made some little changes in the first code. It was easy. If you have complete idea of for loop then you can do it yourself. Feel free to share your code.

Here is the Code :

  int x,y;
for (x = 1; x <= 5; x++)
{
for (y = 5; y >= x; y–)
{
printf(“*”);
}
printf(“\n”);
}

(Visited 269 times, 1 visits today)

About the Author:

Suniv Ashraf

Leave A Comment