fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. char* argv[] = { "foo", "8" };
  6.  
  7. int level = atoi(argv[1]);
  8.  
  9.  
  10. for(int i=1; i<=level; ++i)
  11. printf("%*.*s\n", level, i, "#####################");
  12.  
  13. return 0;
  14. }
Success #stdin #stdout 0s 2168KB
stdin
Standard input is empty
stdout
       #
      ##
     ###
    ####
   #####
  ######
 #######
########