Help me in solving LBJ211 problem

It is resolved. Thank you

Just few logical mistakes.
I have corrected it in your code.
Hope u will get it.

import java.util.Scanner;

class Codechef
	public static void main (String[] args)
		Scanner read = new Scanner(;
		int t = read.nextInt();
		for(int i=0; i<t; i++)
    		int n = read.nextInt();
    		int m = read.nextInt();
    		// Update the code below this line to solve this problem
    		if(n%m == 0&&(n/m)%2==0){
    		else {

Thank you so much!