Programming Code Center(PCC)
[JAVA]

(PCC)::[how-to-write-Java-Program-to-Compute-Quotient-and-Remainder]::[java]

File Name : QuotientRemainder.java

public class QuotientRemainder {

    public static void main(String[] args) {

        int dividend = 25, divisor = 4;

        int quotient = dividend / divisor;
        int remainder = dividend % divisor;

        System.out.println("Quotient = " + quotient);
        System.out.println("Remainder = " + remainder);
    }
}

Output :

QuotientRemainder.jpg