Commit Graph

3 Commits (929963809f12439e845a38576b51f475cc0d2227)

Author SHA1 Message Date
rajranjan0608 1024b3f039 Update index.md (#20355) 2018-10-29 12:52:43 -07:00
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
Mrugesh Mohapatra da0df12ab7 fix(guide): simplify directory structure 2018-10-16 21:32:40 +05:30