How to get factorial of a number larger than 100?

Use BigInteger in java. That is the easiest way.

BigInteger is one possible solution

my name is amardeep and i am just 13 but this is the simpliest way to calculate factorial â€¦ by using for loop

#include <stdio.h>

int main()

{

int c, n, fact = 1;

printf(â€śEnter a number to calculate itâ€™s factorial\nâ€ť);

scanf("%d", &n);

for (c = 1; c <= n; c++)

fact = fact * c; // fact intial value is 1 so when the loop starts it keeps on multplying fact *c until the condition becomes falseâ€¦ it also changes the value of c variable

printf(â€śFactorial of %d = %d\nâ€ť, n, fact);

return 0;

}

my name is amardeep and i am just 13 but this is the simpliest way to calculate factorial â€¦ by using for loop

#include <stdio.h>

int main()

{

int c, n, fact = 1;

printf(â€śEnter a number to calculate itâ€™s factorial\nâ€ť);

scanf("%d", &n);

for (c = 1; c <= n; c++)

fact = fact * c; // fact intial value is 1 so when the loop starts it keeps on multplying fact *c until the condition becomes falseâ€¦ it also changes the value of c variable

printf(â€śFactorial of %d = %d\nâ€ť, n, fact);

return 0;

}