2015年12月8日

评委打分问题---去掉两个最高分,两个最低分,求平均分

摘要: //评委打分 去掉两个最高分 去掉两个最低分 求平均数 int []defen={78,79,80,83,89,99,90,76,88,98}; for(int a=0;adefen[a+1]) { int t=defe... 阅读全文

posted @ 2015-12-08 22:08 Chen_s 阅读(3072) 评论(0) 推荐(0) 编辑

折纸比山高

摘要: //一张a4的厚度是88毫米,每次对折一次,求这几次之后高度超过8848 double a6=0.0088; int a7=1; while (a6<8848) { a7=a7+1; a6=a6*2; } ... 阅读全文

posted @ 2015-12-08 21:22 Chen_s 阅读(183) 评论(0) 推荐(0) 编辑

类的定义、方法练习

摘要: package com.java; //包名public class Bird { //类名//属性String YanSe;String ZhongLei;double FanLiang;//方法public void weiShi(double FanLiang){System.out.p... 阅读全文

posted @ 2015-12-08 08:41 Chen_s 阅读(154) 评论(0) 推荐(0) 编辑

导航