fork download
  1. // 1-5-A
  2. #include <stdio.h>
  3. int main(void){
  4. int W, H;
  5. while(1){
  6. int i,j;
  7. W = 0; H = 0;
  8. scanf("%d%d", &H, &W);
  9. if(W == 0 && H == 0) break;
  10. for(i = 0; i < H; ++i){
  11. for(j = 0; j < W; ++j){
  12. printf("#");
  13. }
  14. printf("\n");
  15. }
  16. printf("\n");
  17. }
  18. return 0;
  19. }
Success #stdin #stdout 0s 2056KB
stdin
2 5
5 2
3 5
5 3
6 4
4 6
8 8
8 7
7 8
9 9
9 11
11 19
1 2
2 1
1 3
3 1
1 4
4 1
1 10
10 1
0 0
stdout
#####
#####

##
##
##
##
##

#####
#####
#####

###
###
###
###
###

####
####
####
####
####
####

######
######
######
######

########
########
########
########
########
########
########
########

#######
#######
#######
#######
#######
#######
#######
#######

########
########
########
########
########
########
########

#########
#########
#########
#########
#########
#########
#########
#########
#########

###########
###########
###########
###########
###########
###########
###########
###########
###########

###################
###################
###################
###################
###################
###################
###################
###################
###################
###################
###################

##

#
#

###

#
#
#

####

#
#
#
#

##########

#
#
#
#
#
#
#
#
#
#