100! 不知道对不对啊,反正查0的个数是对的
程序代码:
import java.math.BigInteger ; public class firstgui { public static void main(String[] args) { BigInteger result = new BigInteger("1"); for (int i = 1; i <= 100; i++) { BigInteger num = new BigInteger(String.valueOf(i)); result = result.multiply(num); } System.out.println(result); } }
93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000