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”);
}

Leave a Reply

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