fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. for (int x = 9; x > 0; x--) {
  5. for(int y = 9 - x; y > 0; y--) {
  6. printf(" ");
  7. }
  8. for (int y = 1; y <= x * 2 - 1; y++) {
  9. printf("*");
  10. }
  11. printf("\n");
  12. }
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 2156KB
stdin
Standard input is empty
stdout
*****************
 ***************
  *************
   ***********
    *********
     *******
      *****
       ***
        *