Your question, your audience. Choose who sees your identity—and your question—with question security.
BigInteger a;
BigInteger b;
BigInteger product;
a = someValue;
b = anotherValue;
product = a.multiply(b);
BigInteger fac = new BigInteger("1") ;
for (int i = 2 ; i <= 80 ; i++) {
BigInteger multiplier = new BigInteger(Integer.toString(i)) ;
fac = fac.multiply(multiplier) ;
}
System.out.println("Factorial 80 is " + fac) ;
BigInteger fac = BigInteger.ONE;
for (int i = 2 ; i <= 80 ; i++) {
BigInteger multiplier = BigInteger.valueOf(i);
fac = fac.multiply(multiplier);
}
System.out.println("Factorial 80 is " + fac);
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.