Note: Factorials of N>20 can't be stored even in a 64−bit long long variable. Big integers must be used for such calculations. Languages like Java, Python, Ruby etc. can handle big integers but we ...
Calculate and print the factorial of a given integer. For example, if n=30, we calculate 30*29*28*….*2*1 and get . Note: Factorials of n>20 can’t be stored even in a 64-bit long long variable. Big ...