
public class loopDemo5 {

	public static void main(String[] args) {
		// Required variables:
		// int 		- (our guess number)
		// String	- to hold the user's response of "yes" or "no"
		int guess = 0;
		String response="no";
		
		// ask the user for bounds on their 'secret' number
		System.out.println("What's an integer number lower than your secret number? ");
		int lower = Keyboard.readInt();
		System.out.println("What's an integer number higher than your secret number? ");
		int higher = Keyboard.readInt();
		
		
		// Goal:
		//    loop through, asking the user yes/no questions
		// and reduce the range of possible numbers by 1/2 each time
		
	
		// response to user indicating when we've found their number
		System.out.println("Your number was "+lower);
	}

}

