Skip to content

Instantly share code, notes, and snippets.

@nesffer
Created April 27, 2015 05:14
Show Gist options
  • Save nesffer/44e72b837d87de51dce3 to your computer and use it in GitHub Desktop.
Save nesffer/44e72b837d87de51dce3 to your computer and use it in GitHub Desktop.
2015-04-27 No.2
#include <stdio.h>
int main() {
for (int i = 1; i <= 20; i++) {
for (int a = 20; a > i; a--) {
printf(" ");
}
for (int j = 0; j < i; j++) {
printf("*");
}
printf("\n");
}
return 0;
}
/*
*
**
***
****
*****
******
*******
********
*********
**********
***********
************
*************
**************
***************
****************
*****************
******************
*******************
********************
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment