freeCodeCamp/guide/english/c
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
..
appendix fix(guide): simplify directory structure 2018-10-16 21:32:40 +05:30
arrays fix(guide): simplify directory structure 2018-10-16 21:32:40 +05:30
arrays-and-strings Correcting a spelling mistake (#19845) 2018-10-26 03:29:30 -06:00
basic-networking fix(guide): simplify directory structure 2018-10-16 21:32:40 +05:30
conditional-statements update : handle division with zero & runtime error (#19620) 2018-10-23 22:50:19 +09:00
data-types fix(guide): simplify directory structure 2018-10-16 21:32:40 +05:30
dynamic-memory-management Update index.md (#21488) 2018-10-20 01:55:11 +05:30
file-handling fix(guide): simplify directory structure 2018-10-16 21:32:40 +05:30
for star pattern using for loop (#20222) 2018-10-28 15:06:09 -07:00
format-specifiers fix(guide): simplify directory structure 2018-10-16 21:32:40 +05:30
functions Added some info on recursion (#19814) 2018-10-23 10:40:57 -05:00
hello-world Update index.md (#25613) 2018-10-22 23:26:20 -07:00
if define the value of variable a to 100 (#27763) 2018-10-26 03:22:16 -06:00
if-statements Fixed typo in an example (#21436) 2018-10-20 01:57:46 +05:30
loops updated code parts for increased compatibility (#19621) 2018-10-23 22:49:32 +09:00
macros fix(guide): simplify directory structure 2018-10-16 21:32:40 +05:30
malloc Do not cast the result of malloc (#20044) 2018-10-27 19:56:26 -07:00
math fix(guide): simplify directory structure 2018-10-16 21:32:40 +05:30
more-math fix(guide): simplify directory structure 2018-10-16 21:32:40 +05:30
operators fix(guide): simplify directory structure 2018-10-16 21:32:40 +05:30
passing-pointers-to-function fix(guide): simplify directory structure 2018-10-16 21:32:40 +05:30
pointers fix(guide): simplify directory structure 2018-10-16 21:32:40 +05:30
short-circuit-evaluation fix(guide): simplify directory structure 2018-10-16 21:32:40 +05:30
structured-data-types Correcting a spelling mistake (#19845) 2018-10-26 03:29:30 -06:00
structures fix(guide): simplify directory structure 2018-10-16 21:32:40 +05:30
switch fix(guide): simplify directory structure 2018-10-16 21:32:40 +05:30
ternary-operator fix(guide): simplify directory structure 2018-10-16 21:32:40 +05:30
variables fix(guide): simplify directory structure 2018-10-16 21:32:40 +05:30
variables-and-basic-datatypes fix(guide): simplify directory structure 2018-10-16 21:32:40 +05:30
index.md added " C programming ressources link" (#21039) 2018-10-22 14:58:42 -04:00