Siddharth Shrivastav
c8aa2a4e9e
star pattern using for loop (#20222)
## Example for printing star pattern for pyramid
```c
#include<stdio.h>
int
main ()
{
int i, j;
for (i = 1; i <= 5; i++)
{
for (j = i; j < 5; j++)
{
printf (" ");
}
for (j = 1; j <= (2 * i - 1); j++)
{
printf ("*");
}
printf ("\n");
}
return 0;
}
```
## Output:
```shell
*
***
*****
*******
*********
``
2018-10-28 15:06:09 -07:00
..
2018-10-16 21:32:40 +05:30
2018-10-16 21:32:40 +05:30
2018-10-26 03:29:30 -06:00
2018-10-16 21:32:40 +05:30
2018-10-23 22:50:19 +09:00
2018-10-16 21:32:40 +05:30
2018-10-20 01:55:11 +05:30
2018-10-16 21:32:40 +05:30
2018-10-28 15:06:09 -07:00
2018-10-16 21:32:40 +05:30
2018-10-23 10:40:57 -05:00
2018-10-22 23:26:20 -07:00
2018-10-26 03:22:16 -06:00
2018-10-20 01:57:46 +05:30
2018-10-23 22:49:32 +09:00
2018-10-16 21:32:40 +05:30
2018-10-27 19:56:26 -07:00
2018-10-16 21:32:40 +05:30
2018-10-16 21:32:40 +05:30
2018-10-16 21:32:40 +05:30
2018-10-16 21:32:40 +05:30
2018-10-16 21:32:40 +05:30
2018-10-16 21:32:40 +05:30
2018-10-26 03:29:30 -06:00
2018-10-16 21:32:40 +05:30
2018-10-16 21:32:40 +05:30
2018-10-16 21:32:40 +05:30
2018-10-16 21:32:40 +05:30
2018-10-16 21:32:40 +05:30
2018-10-22 14:58:42 -04:00