Broken calculator

how to solve this problem ?

Factorial of big numbers like 100 cannot be stored even if we use use long long int.


Refer to this article and tell me if you get the logic.

@dhairya16 Please mark your doubt as resolved if you are satisfied