First Post: So please forgive me if I get the formatting incorrect.
I think I understand the question. I have a function for both scenarios: is one number a power of another AND what is the power with a return of 0 if it doesn't have a whole number power.
Theory: If you keep dividing the...