练习3:
求1+2!+3!+...+20!的和

public class jieceng {

public static void main(String[] args) {
// TODO Auto-generated method stub
           int a, sum=0,s=1;
           for(a=1;a<21;++a){
          s*=a;
          sum+=s;
           }
           System.out.print(sum);
}

}

练习3

相关文章:

  • 2021-05-17
  • 2021-08-08
  • 2021-10-25
  • 2021-08-10
  • 2021-12-30
  • 2021-08-17
  • 2022-01-18
  • 2021-11-11
猜你喜欢
  • 2022-01-23
  • 2021-08-27
  • 2021-05-08
  • 2021-10-01
相关资源
相似解决方案