I,ve been trying to write a program that calculates the factorial of a number.
The program works quite well, but for the fact that i'm unable to store the value of the factorial.
80! has over a hundred digits, and i want to store and print to screen all the digits(no truncating or rounding). Int gives me only 4 bytes, long only 8bytes that doesnt help.
How do i store and display such large values.
What if there were more than 500 digits for eg:- 100^(80!).
How would i store and display these large values without losing digits. :confused:
Any help will be appreciated.