this are my codes.
import java.util.*;
public class test{
public static void main (String [] args ){
Scanner input = new Scanner (System.in);
int b, n1, n2, sum, sub, mul, div, mod;
System.out.print ("Enter first number: ");
n1=input.nextInt();
System.out.print ("Enter second number: ");
n2=input.nextInt();
System.out.println("****************************Ch oose an Operation****************************");
System.out.println("[1] Addition");
System.out.println("[2] Subtraction");
System.out.println("[3] Multiplication");
System.out.println("[4] Division");
System.out.println("****************************** *********************************************");
System.out.println("Selected Operation");
b=input.nextInt();
if (b==1){
sum=n1+n2;
System.out.print("The Sum is :" + n1 + "&" + n2 +" is " + sum );
}
else if (b==2){
sub=n1-n2;
System.out.print("The sub is :" + n1 + "&" + n2 +" is " + sub );
}
else if (b==3){
mul=n1*n2;
System.out.print("The mul is :" + n1 + "&" + n2 +" is " + mul );
}
else if (b==4){
div=n1/n2;
mod=n1%n2;
System.out.println("The div is :" + n1 + "&" + n2 +" is " + div );
System.out.println("The mod is :" + n1 + "&" + n2 +" is " + mod );
}
}
}