This content originally appeared on DEV Community and was authored by Dev.Coder
Code:
int main()
{
int n;
printf("Enter the number of rows");
scanf("%d",&n);
for(int i=1;i<=n;i++)
{
for(int j=1;j<=i;j++)
{
printf("* ");
}
printf("\n");
}
return 0;
}
=================================================
Output :
=================================================
=================================================
This content originally appeared on DEV Community and was authored by Dev.Coder

Dev.Coder | Sciencx (2022-07-14T16:49:08+00:00) Printing Right Triangle Star Pattern in c. Retrieved from https://www.scien.cx/2022/07/14/printing-right-triangle-star-pattern-in-c/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.