i have tried the code but it is giving unexpected output. i cannot think of how to correctly approach this problem . please tell the mistakes in my code and also how to solve this problem .
Ultra fast mathematician problem
@Raghavsingla522
your logic was correct, but you were having trouble handling the strings, first you took entire line as the input then converted them into char*, and proceeded further. all this was not necessary. i have corrected your code, please check.
1 Like
thanks
it is running successfully now.
1 Like
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.