This is an interview question: \"Given 2 integers x and y, check if x is an integer power of y\" (e.g. for x = 8 and y = 2 the answer is \"true\", and for x = 10 and y = 2 \
double a=8; double b=64; double n = Math.log(b)/Math.log(a); double e = Math.ceil(n); if((n/e) == 1){ System.out.println("true"); } else{ System.out.println("false"); }