+ 1
This factorial coding breaks after 12!(means it is valid only upto 12!), why this so happen, plz tell me it's solution??
5 ответов
+ 2
Hey Prakash Jaiswal
Factorials greater 20 can't be stored even in a 64 - bit long variable.
following link will help you to code 👇👇
https://www.javatpoint.com/extra-long-factorials-in-c
+ 3
Prakash Jaiswal
use "%ld" while printing factorial in your code !
I recommend to use long long int for it !
0
Thank you guys for helping!
0
But Thirt13n, when I used urs instruction....I just have valid value upto 20!, why not I get futher or greater factorial value that I needed?
0
Thanx again for clearing my doubts... Thirt13n !