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

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

I was just trying to solve this problem in my own way. If you have any better code then please feel free to share it in the comment section.

Here is the Code :

int main()
{
int i, j;
for (i = 1; i <= 5; i++)
{
for (j = 1; j <= i; j++)
{
printf(“*”);
}
printf(“\n”);
}

(Visited 55 times, 1 visits today)



There are no comments

Add yours

Leave a Reply

%d bloggers like this: