hello,

Can any one tell me how to print the patter

```
*
***
*
for n =1
**
****
****
**
for n = 2
***
*****
*****
*****
***
for n = 3
```

the code i am having is

```
for(i=0;i<=n;i++)
{
for(j=1;j<n-i;j++)
putchar(' ');
for(k=0;k<=i;k++)
printf('* ');
putchar('\n');
}
```

what will be the condition so that i will get that pattern

thanking you