import java.util.Scanner;
public class JavaApplication {
public static void main(String[] args) {
Scanner reader = new Scanner(System.in);
int guess ,rand;
rand =(int) (Math.random ()*100) ;
boolean stillplaying = true;
while (stillplaying)
{
System.out.println("guess bettween 0 and 100");
guess = reader.nextInt();
if(guess>rand)
System.out.println("guess is too larg");
else if (guess<rand)
System.out.println("guess is too small");
else
System.out.println("You Win");
stillplaying = false;
}
}
}