#include<stdio.h>
#include<conio.h>
void main()
{
int n=0, i=0, j=0;
printf("enter the limit");
scanf("%d",&n);
for(i=1; i<=n; i++)
{
//this loop is used to print spaces
for(j=n; j>i; j--)
{
printf(" ");
}
//this loop used to print the stars
for(j=1;j<=i;j++)
{
printf("* ");
}
printf("\n");
}
}