Wrong Answer

My code gives correct answer in my ubuntu but gives wrong answer in codechef. Any Help is appreciated.

The Reason for your wrong answer is your data type is int, The value of n can be 100, so factorial of 100 is such a big number which you can’t store in integer.

It might be working fine for small cases in ubuntu.

OMG!Such a silly mistake.Thank You so much.