首页 > 其他分享> > 计算1!+2!+...10! 计算1!+2!+...10! 2021-09-07 22:00:46 作者:互联网 public class 计算{ public static void main(String[] args){ int sum = 0,n=1; for(int i = 1;i <= 10;i++){ n *= i; sum += n; } System.out.println(sum); }} 标签:10,+...,String,int,sum,计算,public 来源: https://www.cnblogs.com/874162650-com/p/15240401.html