My issue
My code
// The code below is incorrect. Debug the code to solve this problem
import java.util.Scanner;
class Codechef
{
public static void main (String[] args)
{
Scanner read = new Scanner(System.in);
int t = read.nextInt();
for(int i=0; i<t; i++)
//while(t>=0)
{
int x = read.nextInt();
int y = read.nextInt();
if(x==y){
System.out.println("YES");
}
else{
System.out.println("NO");
}
}
}
}
Learning course: Solve Programming problems using Java
Problem Link: CodeChef: Practical coding for everyone