##CONTINUE##
Here is the code to build "*" pyramid.
#includeint main() { int i,j; for (j=1; j<=5; j++) { for (i=1; i<=5; i++) { if (i<5-j+1) { printf(" "); } else { printf("* "); } } printf("\n"); } return 0; }
You can also arrange the "*" on the left side.
#includeint main() { int i,j; for (j=1; j<=10; j++) { for (i=1; i<=10; i++) { if (i<10-j+1) { printf(" "); } else { printf("* "); } } printf("\n"); } return 0; }