fork download
  1. #include <stdio.h>
  2.  
  3. void func(){
  4. int i,j;
  5. for(i=1;i<=4;i++){
  6. for(j=0;j<i;j++){
  7. printf("#");
  8. }
  9. printf("\n");
  10. }
  11. }
  12.  
  13. int main(void) {
  14. func();
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 5304KB
stdin
Standard input is empty
stdout
#
##
###
####