I want keep 100! (Factorial) in a variable. What should i do? Except Array.
there are libraries for storing such values that use dynamic memory to store them, if I remember correctly the concept named "big numbers" example: https://stackoverflow.com/questions/12988099/big-numbers-library-in-c
just do like that , #define fact100 9223372036854775807 enjoy. or u can use unsinged long long int
I found the answer. I should use the GNU Multiple Precision Library.
ok , but it will be pretty annoying to use libraries when u can do that simply
Обсуждают сегодня