I have implemented the same as suggest please rectify this code
Math day problem
hii
your code has some wrong logic. for eg, if i want to calculate 2^(4!), your code was calculating , (2^1)(2^2)(2^3)*(2^4) which is equal to 2^10 and not 2^24.
I have corrected the code
When you calculate 2^1, send it to the function again so that it calculates (2^1)^2 which is 4, then send 4 to the function so that it calculates 4^3 which is 64 and then send 64 to the function so that it calculates 64^4 which is equal to 2^24.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.