public
class Test
{
public static void main (String args[])
{
int a = 4;
int b = 2;
// 4+2
System.out.println("a+b:");
System.out.println(a + b);
// 4 -2
System.out.println("a-b:");
System.out.println(a - b);
// 4/2
System.out.println("a/b:");
System.out.println(a/b);
// 4*2
System.out.println("a*b:");
System.out.println(a*b);
// dzielenie modulo
System.out.println("a%b:");
System.out.println(a%b);
// inkrementacja o 1 (przyrost)
a++;
// 4/3
System.out.println("a++/b:");
System.out.println(a/b);
// 4/3 dzielenie modulo
System.out.println("a++%b:");
System.out.println(a%b);
}
}