//TestIntegerDivision.java

public class TestIntegerDivision
{
    public static void main(String args[])
    {
        //Testing integer division (/) and modulus (%)
        //with both positive and negative integers
        System.out.println(-120 / 100);  //Output = -1
        System.out.println(-120 % 100);  //Output = -20
        System.out.println(120 / -100);  //Output = -1
        System.out.println(120 % -100);  //Output = 20
        System.out.println(120 / 100);   //Output = 1
        System.out.println(120 % 100);   //Output = 20
        System.out.println(-120 / -100); //Output = 1
        System.out.println(-120 % -100); //Output = -20
    }
}

