{
public static void main(String[] args)
{
int a = 10, b = 15, c = 15;
System.out.println("Arithmetic Operators and returned values");
System.out.println(" a + b = " + (a + b));
System.out.println(" b - a = " + (b - a));
System.out.println(" a * 2 = " + (a * 2));
System.out.println(" b / 5 = " + (b / 5));
System.out.println(" b % 2 = " + (b % 2));
System.out.println(" Unary plus = " + +2));
System.out.println(" Unary minus = " + -2);
}
}
Output
Arithmetic Operators and returned values
a + b = 25
b - a = 5
a * 2 = 20
b / 5 = 3
b % 2 = 1
Unary plus = 2
Unary minus = -2