No output even code has compiled sucessfully

question https://hack.codingblocks.com/contests/c/637/110
code
https://ide.codingblocks.com/s/55493

help here please…

Hi Gaurav, your code is giving Time Limit Exceeded for most of the inputs. It gives factorial of 1 as 11. Please write the logic of your code in comments so that we can debug it.

Hey Gaurav, as you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.