day1017
JamesWilson_
这个作者很懒,什么都没留下…
展开
-
猜数字游戏
package com.lovo;import java.util.Scanner;/** * 猜数字游戏 * * @author 李睿 * */public class Text06 { public static void main(String[] args) { int num = (int) (Math.random() * 100 + 1); Scann原创 2014-10-19 19:48:47 · 300 阅读 · 0 评论 -
21根火柴游戏
package com.lovo;import java.util.Scanner;/** * 21根火柴的游戏 * 两个人分别拿火柴,每人每次只能1~4根火柴,拿到最后一根火柴的人就输了 * @author 李睿 * */public class Text01 { public static void main(String[] args) { int lest = 2原创 2014-10-19 19:57:40 · 1525 阅读 · 0 评论 -
7星彩随机N注选号程序
package com.lovo;import java.util.Scanner;/** * 7星彩随机N注选号程序 * @author 李睿 * */public class Text05 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.ou原创 2014-10-19 22:08:30 · 3573 阅读 · 0 评论 -
Craps 赌博游戏 含押注
package com.lovo;import java.util.Scanner;/** * Craps 赌博游戏 含押注 * @author 李睿 * */public class Text0401 { public static int roll(){ return (int) (Math.random() * 6 + 1); } public stati原创 2014-10-19 19:51:01 · 1413 阅读 · 0 评论 -
完美数
package com.lovo;/** * 找出1~10000之间的完美数 * 完美数的定义:除开本身以外的所有因子之和等于本身的数 * @author 李睿 * */public class Text01 { public static int perfctnum(int n){ int sum = 0; for (int i = 1; i < n; i++){原创 2014-10-19 19:55:53 · 326 阅读 · 0 评论 -
Craps 赌博游戏
package com.lovo;/** * Craps 赌博游戏 * @author 李睿 * */public class Text04 { public static int roll(){ return (int) (Math.random() * 6 + 1); } public static void main(String[] args) { in原创 2014-10-19 19:50:28 · 743 阅读 · 0 评论