Skip to main content
Search
Search This Blog
techstarkhub
Share
Get link
Facebook
X
Pinterest
Email
Other Apps
pattern part2
#include<stdio.h>
void main()
{
int i,j,n;
printf("Enter no of row:");
scanf("%d",&n);
for(i=0;i<n;i++)
{
for(j=0;j<=i;j++)
{
printf("*");
}
printf("\n");
}
getch();
}
OUTPUT
:
Comments
Comments
Post a Comment