My issue the code is running but some mistake is there in if else statement can any one rectify that mistake
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++)
//Update your code below this line to solve this problem
{
int x = read.nextInt();
int y = read.nextInt();
int day = 100;
int Duration_of_disposable = 1;
int Duration_of_cloth = 10;
int chef = x*(day/Duration_of_disposable);
int chop = y*(day/Duration_of_cloth);
if(x > y || chef == chop){
System.out.println("Disposable");
}
else if(x<y ||chef == chop){
System.out.println("Cloth");
}
}
}
}
Learning course: Solve Programming problems using Java
Problem Link: CodeChef: Practical coding for everyone