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 89 times, 1 visits today)
By |2017-04-07T22:11:52+00:00October 15th, 2016|Categories: C/C++, Programming|Tags: , , , , , , , , , , , , |0 Comments

About the Author:

Suniv Ashraf

Leave A Comment