Problem:
Print a Rectangle Draw a rectangle which has a height of H cm and a width of W cm. Draw a 1-cm square by single '#'. Input The input consists of multiple datasets. Each dataset consists of two integers H and W separated by a single space. The input ends with two 0 (when both H and W are zero). Output For each dataset, print the rectangle made of H × W '#'. Print a blank line after each dataset. Constraints  1 ≤ H ≤ 300  1 ≤ W ≤ 300  Sample Input 3 4
5 6
2 2
0 0 Sample Output ####
####
####

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

##
##

Solution (Python):
while True:
    h,w = map(int,input().split())
    if h == 0 and w == 0:
        break
    for i in range(h):
        print('
    print("")

Solution (Python):
while True:
    H,W=map(int,input().split())
    if H==W==0:
        break
    for i in range(H):
        print('
    print('')

Solution (Python):
while True:
  h, w = list(map(int, input().split()))
  if h==w==0:
    break
  for i in range(h):
    print("
  print()

Solution (Python):


def kusa(height, width):
    for h in range(height):
        print('
    print()
        
while True:
    h, w = map(int, input().split())
    if h == 0 and w == 0:
        exit()
    else:
        kusa(h, w)

Solution (Python):
while True:
    a,b = map(int,input().split())
    if a == 0 and b==0:
        break
    for i in range(a):
        print("
    print("")

Solution (Python):
while True:
    H, W = map(int, raw_input().split())
    if H == W == 0:
        break
    for _ in range(H):
        print "
    print ""

Solution (Python):
while True:
    (H, W) = [int(i) for i in input().split()]
    if H == W == 0:
        break
    print(("

Solution (Python):
sss = input()
while not sss == '0 0':
	ss = sss.split(' ')
	H = int(ss[0])
	W = int(ss[1])
	for i in range(H):
		sh = ''
		for j in range(W):
			sh += '
		print(sh)
	print('')
	sss = input()

Solution (Python):


def main():

	while True:
		H,W = map(int,raw_input().split())
		if H == W == 0:
			break
		a = ''
		for i in xrange(W):
			a += '
		for i in xrange(H):
			print(a)
		print('')

if __name__ == "__main__":

	main()

Solution (Python):
data = []
tmp = []
for x in range(0,1000000):
    a,b = map(int, input().split())
    if a==0:
        if b==0:
            break
        pass
    data.append((a,b))
for x in range(0,len(data)):
    tmp = list(data.pop(0))
    for y in range(0,tmp[0]):
        for z in range(0,tmp[1]):
            print("
        print("")
    tmp.clear()
    print("")