Skip to content

Instantly share code, notes, and snippets.

@nesffer
Created April 27, 2015 05:20
Show Gist options
  • Save nesffer/d6e4296fc09dd090f095 to your computer and use it in GitHub Desktop.
Save nesffer/d6e4296fc09dd090f095 to your computer and use it in GitHub Desktop.
2015-04-27 No.3
#include <stdio.h>
int main() {
for (int i = 0; i < 20; i++) {
for (int a = 0; a < i; a++) {
printf(" ");
}
for (int j = 20; 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