编写一个程序,计算s=1!+2!+…..+10!

来源:学生作业帮助网 编辑:六六作业网 时间:2024/05/18 03:18:48
编写一个程序,计算s=1!+2!+…..+10!编写一个程序,计算s=1!+2!+…..+10!编写一个程序,计算s=1!+2!+…..+10!publicclassTest{publicstatic

编写一个程序,计算s=1!+2!+…..+10!
编写一个程序,计算s=1!+2!+…..+10!

编写一个程序,计算s=1!+2!+…..+10!
public class Test {
public static void main(String[] args) {
int s = 0;
int n = 1;
for(int i=0; i