fork(1) download
  1. #include <stdio.h>
  2. int main() {
  3. int l, c;
  4.  
  5. for (l=1; l<10; l++) {
  6. for(c=0; c<=7+l; c++)
  7. printf(c<9-l?" ":"*");
  8. printf("\n");
  9. }
  10. }
Success #stdin #stdout 0s 2160KB
stdin
Standard input is empty
stdout
        *
       ***
      *****
     *******
    *********
   ***********
  *************
 ***************
*****************