My issue
debug my code
My code
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int T = scanner.nextInt();
for (int i = 0; i < T; i++) {
int N = scanner.nextInt();
int M = scanner.nextInt();
int X= N * 9/10;
if (X< M) {
System.out.println("online");
} else if(M==X){
System.out.println("DINING");
}
else{
System.out.println("EITHER");
}
}
}
}
Learning course: Number theory
Problem Link: Online or Offline Practice Problem in Number theory - CodeChef