DEV Community

Aman Dixit
Aman Dixit

Posted on

Find n,if a^n =b, where a,b are taken as input?for example a = 5, b = 625 then n would be 4.

Given 2 integers, find out the resulting integer that would be the exponent relating to the given 2 numbers. By definition: a^n = b, where a, b are provided as input, while n needs to be computed. For instance, given 5 and 625, the result would be 4.
Please help me in finding n?

Top comments (1)

Collapse
 
vladzen13 profile image
Vladislav Zenin