/**
* Program : Program tebak angka
* Date : 4 Juni 2022
* Author : Riyanto
* Website : https://www.melonkoding.com
*/
import java.util.Random;
import java.util.Scanner;
class Main {
private static int randomizedNumber;
public static void main(String[] args) {
Random random = new Random();
Scanner scanner = new Scanner(System.in);
int number = 0;
randomizedNumber = random.nextInt(101);
do {
System.out.println("Enter your number [0 - 100]: ");
number = scanner.nextInt();
if(number > randomizedNumber) System.out.println("Your number is to BIG!");
else if(number < randomizedNumber) System.out.println("Your number is to SMALL!");
else System.out.println("Yeay, your number matches!");
}
while(randomizedNumber != number);
}
}