猜数字游戏:do {
System.out.println("请猜一下电脑随机生成的数字为(0-9)");
person = in.nextInt();
if (person < computer) {
System.out.println("猜小了!在" + person + "至8之间");
} else if (person > computer) {
System.out.println("猜大了!在0至" + person + "之间");
}
} while (person != computer);