键盘上的青春

导航

 

2015年6月28日

摘要: public static void main(String[] args){Scanner sc = new Scanner (System.in);int a,b;System.out.println("请输入两个正整数:");a = sc.nextInt();b = sc.nextInt();... 阅读全文
posted @ 2015-06-28 17:34 执念ノ 阅读(297) 评论(0) 推荐(0) 编辑
 
摘要: /**打印出所有的“水仙花数”,所谓“水仙花数”是指一个三位数,其各自数字* 立方和等于该数本身。例如:153是一个”水仙花数“,因为153=1的三次方+5* 的三次方+3的三次方。*/public static void main(String[] args){int j = 0;int i, k... 阅读全文
posted @ 2015-06-28 17:07 执念ノ 阅读(177) 评论(0) 推荐(0) 编辑
 
摘要: public static void main(String[] args){int abcCount = 0;int numCount = 0;int SpaceCount = 0;int otherCount = 0;Scanner sc = new Scanner(System.in);Str... 阅读全文
posted @ 2015-06-28 16:25 执念ノ 阅读(1780) 评论(0) 推荐(0) 编辑