2015年12月1日

摘要: 1.编写一个java application,求出e=1+1/1!+1/2!+1/3!+...+1/n!+...的近似值,要求误差小于0.0001。package test;public class Test { //求n的阶乘 public static int fn... 阅读全文
posted @ 2015-12-01 20:59 hzau2013310200722 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 2-1 数据类型赋值 public class Assign { public static void main (String args [] ) { int x , y ; //定义x,y两个整型变量 float z = 1.234f ; //指定变量z为float型,且赋... 阅读全文
posted @ 2015-12-01 20:27 hzau2013310200722 阅读(452) 评论(0) 推荐(0) 编辑

导航