package samples;

import java.util.Scanner;


/**
 * Created by fqc on 2015/11/3.
 */
public class GuessNumber {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int random_num = (int) (Math.random()*10);
        int guess_num = 0;
        do {
            System.out.println("please input 0~9");
            guess_num = scanner.nextInt();
            System.out.println("guess_number = " + guess_num);
            System.out.println("random_num = " + random_num);
        } while (guess_num != random_num);
    }
}

@@ -279,16 +279,17 @@
 um = 0;%0A
+%0A
         
@@ -325,17 +325,17 @@
 rintln(%22
-p
+P
 lease in
@@ -342,11 +342,25 @@
 put 
+one num of %5B
 0~9
+%5D 
 %22);%0A
@@ -443,19 +443,16 @@
 uess_num
-ber
  = %22 + g
@@ -537,29 +537,28 @@
    %7D
- 
 while
- (guess
+(random
 _num != 
 rand
@@ -553,22 +553,21 @@
 _num != 
-random
+guess
 _num);%0A 
@@ -571,10 +571,14 @@
 ;%0A    %7D%0A
+%0A%0A%0A%0A
 %7D%0A

update the guessnumber