摘要: /** * Created by liwenj on 2017/7/17. */public class test12 { public static void main(String[] args) { int i = 0; int sum = 0; while (i < 100) { sum = 阅读全文
posted @ 2017-07-17 15:39 斯丢皮德曼 阅读(517) 评论(0) 推荐(0) 编辑
摘要: /** * Created by liwenj on 2017/7/17. * 问题:某学校现今人数25万,以每年25%的增长速度,多久可到达100万? */ public class test11 { public static void main(String[] args) { //i为计数器,存储循环的次数 int i=0; ... 阅读全文
posted @ 2017-07-17 15:19 斯丢皮德曼 阅读(231) 评论(0) 推荐(0) 编辑
摘要: import java.util.Scanner; /** * Created by liwenj on 2017/7/17. */ public class test9 { public static void main(String[] args) { Scanner input=new Scanner(System.in); System.ou... 阅读全文
posted @ 2017-07-17 14:05 斯丢皮德曼 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 实例1 实例2 阅读全文
posted @ 2017-07-17 14:03 斯丢皮德曼 阅读(750) 评论(0) 推荐(0) 编辑