--- In [email protected], "ruhatadiyaman" <ruhatadiya...@...> wrote:
>
> i wrote a code which calculates the factorials of 1-20. it gives the correct 
> result until 13 but it is not correct after 13.

Because 13! > 2^31. That is, the int type is not big enough to hold the answer. 
Try using long or long long, or floating point arithmetic.

John

Reply via email to