Java Arithmetic Operator Program


Program
public class ArithmeticOperator{ public static void main(String args[]){ int x=3; int y=2; System.out.println(x+y);//5 System.out.println(x-y);//1 System.out.println(x*y);//6 System.out.println(x/y);//1 System.out.println(x%y);//1 } }
Input
Output