Last active
April 22, 2018 16:38
-
-
Save nsmr0604/ceb602f0f61fd9e1aa4ff5582fa50cd9 to your computer and use it in GitHub Desktop.
Test2018042
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat Test20180423.c | |
#include <stdio.h> | |
#define N 10 | |
int main (void) { | |
int i, j; | |
for (i = 0; i < N; i++) { | |
for (j = 0; j < i; j++) { | |
putchar('*'); | |
} | |
putchar('\n'); | |
} | |
return 0; | |
} | |
$ ./Test20180423 | |
* | |
** | |
*** | |
**** | |
***** | |
****** | |
******* | |
******** | |
********* | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include <stdio.h> | |
#define N 10 | |
int main (void) { | |
int i, j; | |
for (i = 0; i < N; i++) { | |
for (j = 0; j < i; j++) { | |
putchar('*'); | |
} | |
putchar('\n'); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment