import java.util.*;
public class Leicheng
{public static void main(String[]args)
{double mul=1;
int n;
for(n=1;n<=100;n++)
mul=mul*n;
System.out.println(mul);
}
}
测试结果,E后面的157表示10的157次方
2024-01-29 15:30:40
import java.util.*;
public class Leicheng
{public static void main(String[]args)
{double mul=1;
int n;
for(n=1;n<=100;n++)
mul=mul*n;
System.out.println(mul);
}
}
测试结果,E后面的157表示10的157次方