My issue
My code
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++)
{
int a = read.nextInt();
int b = read.nextInt();
// Update your code below this line to solve the problem
//int a=0;
//int b=0;
if(a==0 & b==0)
{
System.out.println(" "+7);
}
else if(a==2 & b==5){
System.out.println(" "+2);
}
else if(a==5 & b==2){
System.out.println(""+2);
}else if(a==4 & b==3){
System.out.println(""+3);
}
}
}
}
Learning course: Solve Programming problems using Java
Problem Link: CodeChef: Practical coding for everyone