摘要: Scanner s = new Scanner(System.in); System.out.println("请输入年龄:"); int a = s.nextInt(); boolean t = a >= 18 ? true: false; System.out.println(t); 阅读全文
posted @ 2018-07-23 14:14 温柔的陌先生 阅读(1489) 评论(0) 推荐(0)
摘要: System.out.println("请输入客户所买的商品单价:"); Scanner s = new Scanner(System.in); int e = s.nextInt(); System.out.println("请输入够买数量:"); int b = s.nextInt(); Sys 阅读全文
posted @ 2018-07-23 14:11 温柔的陌先生 阅读(276) 评论(0) 推荐(0)