https://hack.codingblocks.com/app/practice/1/737/problem
sir can you tell me the mistake in my program
Regarding this question
Hi Sameer. This approach wont work here. As it is mentioned that value of integers can be upto 1000 so 1000! wont fit even in long long int(as it has a range upto 10^18)
for this refer https://www.geeksforgeeks.org/factorial-large-number/
From here u can read how to calculate factorial of large numbers
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.