2016年5月9日

摘要: double h=8848.13*1000; double z=0.08; int sum=0; for(int a=0;;a++) { z*=2; sum++; if(z>h) { break; } } System.out.println("需要对折"+sum+"次"); 阅读全文
posted @ 2016-05-09 14:08 煜渝 阅读(2829) 评论(0) 推荐(0) 编辑
摘要: double dn=0; double jc=1; for(int a=1;a<=20;a++) { jc*=a; dn=dn+1/jc; } System.out.println(dn); 阅读全文
posted @ 2016-05-09 13:15 煜渝 阅读(997) 评论(0) 推荐(0) 编辑
摘要: int a=1; for(int b=1;b<=5;b++) { a*=b; } System.out.println(a); 阅读全文
posted @ 2016-05-09 13:12 煜渝 阅读(1038) 评论(0) 推荐(0) 编辑

导航