LOG C++ beginners august

question:https://hack.codingblocks.com/contests/c/509/189
answer:https://ide.codingblocks.com/#/s/23568
not able to pass one test case?

Your code gives wrong output for
x=1000 and n=10
Try to do this question without using log.
Hint: Try to find the power by which n should be raised so that it becomes x.

https://ide.codingblocks.com/#/s/23654
I am not getting please could you right this code sir

https://ide.codingblocks.com/#/s/23696
Try this
It works fine

1 Like