// "Random_Number_Guesser" sınıfı.
import java.awt.*;
import hsa.Console;
public class Random_Number_Guesser
{
static Console c;
public static void main (String[] args)
{
c = new Console ();
int on_off = 1;
long number = (Math.round(Math.random() * 100));
int guess;
while (on_off == 1)
{
c.println ("1 ile 101 arasinda bir sayi yazin!");
guess = c.readInt ();
if (number > guess)
{
c.println ("Yukari.");
}
if (number < guess)
{
c.println ("Asagi.");
}
if (number == guess)
{
c.println ("Tebrikler, bildiniz!");
on_off = 0;
}
}
}
}