Monday 21 January 2013

1002. Uncle Jack Problem code: UJ

while 1:
 n,s,d=raw_input().partition(' ')
 if n=="0" and d=="0":
  break
 else:
  print (int(n)**(int(d)))

1 comment: