Star Pattern1

Click On Image To ZOOM


//Code
#include<stdio.h>
main()
{
int i,j,n;
printf("Enter no of lines\n");
scanf("%d",&n);
for(i=0;i<n;i++)
{
for(j=0;j<=i;j++)
{
printf("*");
}
printf("\n");
}
}




No comments:

Post a Comment