I was searching around about this topic but I still don\'t get it, if someone can elaborate I would be very thankful.
My task is to divide two variables as integer d
public static void main(String[] args) {
int dividend = 139, divisor = 7;
int quotient = dividend / divisor;
int remainder = dividend % divisor;
System.out.println("The Quotient is = " + quotient);
System.out.println("The Remainder is = " + remainder);
}
Output:
The Quotient is = 19
The Remainder is = 6