fork 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--) printf(" ");
  6. for (int y = 1; y <= x * 2 - 1; y++) printf("*");
  7. printf("\n");
  8. }
  9. }
  10.  
  11. //https://pt.stackoverflow.com/q/136861/101
Success #stdin #stdout 0s 4552KB
stdin
Standard input is empty
stdout
*****************
 ***************
  *************
   ***********
    *********
     *******
      *****
       ***
        *