Test case 0 failing for basic calculator

Can you pls let me know what edge case I am missing.

import java.util.*;
public class Main {

public static void main(String[] args) {

	Scanner s = new Scanner(System.in);
	char ch = s.next().charAt(0);
	do {
		if(ch=='X'||ch=='x') {
			break;
		}else if(ch == '+') {
			int n1=s.nextInt();
			int n2 = s.nextInt();
			addition(n1,n2);
			}
		
		else if(ch == '-') {
			int n1 = s.nextInt();
			int n2 = s.nextInt();
			subtraction(n1,n2);
		}
		else if (ch == '*') {
			int n1 = s.nextInt();
			int n2 = s.nextInt();
			multiplication(n1, n2);
		}
		else if(ch == '/') {
			int n1=s.nextInt();
			int n2 = s.nextInt();
			division(n1,n2);
		}
		else if(ch == '%') {
			int n1=s.nextInt();
			int n2 = s.nextInt();
			modulo(n1,n2);
		}
		else {
			System.out.println("Invalid operation. Try again.");
		}
		ch = s.next().charAt(0);
	}while(true);
	}
public static void addition(int n1,int n2) {
	int sum = n1 + n2;
	System.out.println(sum);
}
public static void subtraction(int n1,int n2) {
	int sub = n1 - n2;
	System.out.println(sub);
}
public static void multiplication(int n1,int n2) {
	int mut = n1 * n2;
	System.out.println(mut);
}
public static void division(int n1,int n2) {
	if(n1>=n2) {
	int div = n1 / n2;
	System.out.println(div);
	}
	else {
		int div = n2/n1;
		System.out.println(div);
	}
	
}
public static void modulo(int n1,int n2) {
	if(n1>=n2) {
	int mod = n1 % n2;
	System.out.println(mod);
	}
	else {
		int mod=n2%n1;
		System.out.println(mod);
	}
	
}

}

Hey @pulkitgupta622 Have a look at this test case :
+
1
2

1
2
*
1
2
.
/
1
2
x
Answer should be :
3
-1
2
Invalid operation. Try again.
0
Your code is giving :
3
-1
2
Invalid operation. Try again.
2
Onlast case it should be zero not 2. since 1/2 is zero in programming.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.