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