Factorial of large number

my code: https://ide.codingblocks.com/s/222007

when I comment out line 18 , it gives correct answer. Otherwise wrong

I think line 18 shouldn’t bear any affect on my answer but it does :frowning: