I didn't understand the logic for this. Kindly explain

What is the logic for such a large numbers. I don’t understand

Refer this Broken Calculator

Yea I checked the gfg

But I did not understand the functioning of multiply function

Dry run with any example case to understand. It is similar to the way you multiply in maths(taking the carry and all).

Showing run error in first test case.

save you code on ide.codingblocks.com and then share its link.

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.