package hwtest.total;
import java.math.BigInteger;
public class BigIntegerMultiply {
public static void main(String args[]){
Integer base = new Integer(1000);
BigInteger result = new BigInteger("1");
for(int i = 1; i <= base; i++){
String temp1 = Integer.toString(i);
BigInteger temp2 = new BigInteger(temp1);
result = result.multiply(temp2);
}
System.out.println("" + base + "! = " + result);
}
}
import java.math.BigInteger;
public class BigIntegerMultiply {
public static void main(String args[]){
Integer base = new Integer(1000);
BigInteger result = new BigInteger("1");
for(int i = 1; i <= base; i++){
String temp1 = Integer.toString(i);
BigInteger temp2 = new BigInteger(temp1);
result = result.multiply(temp2);
}
System.out.println("" + base + "! = " + result);
}
}