Help me in solving CSJ10A problem

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

@shri_128
need one more condition x==y && x>0.
rest is correct.