Create divide.java

get the nth power of 1/2 , wher n is given. also avoid trailing zeros.