å¾ç®åçå®ç°ï¼è¿æ ·çä½ åºè¯¥è½å¤æç½
private static int jiancheng(int m){
int sum = 1; for(int i=1;i<=m;i++){ sum*=i; } return sum; } private static int qiuhe(int n){ int sum = 0; for(int i = 1;i<=n;i++){ sum+=jiancheng(i); } return sum; } public static void main(String[] args) { int n =30; qiuhe(n); }
æé纳ï¼è°¢è°¢ã
温馨提示:内容为网友见解,仅供参考