fork(1) download
  1. #include<stdio.h>
  2. main(i, j) {
  3. for(j = 0; j < 17; j++) putchar('*');
  4. puts("");
  5. for(i = 1; i < 9; i++) {
  6. for(j = 0; j < 9 - i; j++)
  7. putchar('*');
  8. for(j = 0; j < 2 * i - 1; j++)
  9. putchar(' ');
  10. for(j = 0; j < 9 - i; j++)
  11. putchar('*');
  12. puts("");
  13. }
  14. }
Runtime error #stdin #stdout 0s 2008KB
stdin
Standard input is empty
stdout
*****************
******** ********
*******   *******
******     ******
*****       *****
****         ****
***           ***
**             **
*               *