Dont know why it gives wrong answer my logic is correct

dont know why it gives wrong answer my logic is correct

Hello @t.prateek98
could you please share your logic and code so that i can check it .

Hello @t.prateek98 this is the correct code and i have corrected it .
i have commented the error you have to take data tyoe as long long int .


if you have nay doubt you can ask here:
Happy learning!!

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.