katiepillar6
|
c90dfd2f81
|
Return 0 (#21561)
Added return 0 statement to the end of the code, to ensure a properly compiling program.
|
2018-11-14 08:14:44 -07:00 |
Prashant Chand
|
5a99e02a87
|
Add the syntax "For infinite loop " (#21382)
* Add the syntax "For infinite loop "
* Shifted additions around to be less confusing
|
2018-11-13 19:24:02 -07:00 |
Miftah Mizwar
|
9e5b352a86
|
Update wrong output of the example of code (#22530)
|
2018-11-13 21:07:32 -05:00 |
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 |