#include
main()
{
int num,i,j,k,l;
clrscr();
printf("Enter The Number:");
scanf("%d",&num);
for(i=1;i<=num;i++)
{
for(j=1;j<=num;j++)
{
printf("");
}
for(k=1;k<=i;k++)
{
printf("*");
}
for(l=1;l {
printf("*");
}
printf("\n");
}
getch();
}
OUTPUT
Enter The Number: 5
*
***
*****
*******
*********
No comments:
Post a Comment