fork(4) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int height = 8;
  5. for (int i = 1; i <= height; i++)
  6. printf("%*s%.*s\n", height - i, "", i, "#########");
  7. return 0;
  8. }
  9.  
Success #stdin #stdout 0s 5460KB
stdin
Standard input is empty
stdout
       #
      ##
     ###
    ####
   #####
  ######
 #######
########