https://i1.wp.com/eblogarithm.com/wp-content/uploads/2016/10/Star-Printing--pattern-2-Left-Side-Opposite-Triangle-in-C-Programming.png?fit=640%2C360

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 189 times, 1 visits today)



There are no comments

Add yours

Leave a Reply

%d bloggers like this: