Long Number Power Calculate using Log method c++
Calculate:
Base1 ^ power1 = Base2 ^ power2
Base1 ^ power1 < Base2 ^ power2
Base1 ^ power1 > Base2 ^ power2
Example:
Base1 = 2, power1 = 3, Base2 = 4, Power2 = 2
Output: "Second is Big";
Base1 = 2, power1 = 2, Base2 = 3, Power2 = 1
Output: "First is Big";
Base1 = 2, power1 = 4, Base2 = 4, Power2 = 2
Output: "Both are Same";
Note: You need to use the same base (Base1 = Decimal && Base2 = Decimal ) or use Others base.
Problem:
NCD 2019 NCD Salary
Code:
0 Comments
If you have any doubts, Please let me know